#840 Gnome Shell integration

3.0
closed-fixed
nobody
5
2013-04-25
2013-03-26
Lev Abashkin
No

Right now there is no easy way to make Gnome Shell recognize running OmegaT and associate it with its launcher. Here is a patch to fix this issue. One external condition should be fulfilled though, launcher file name should be "omegat.desktop" (lowercase). Tested on Debian Unstable x86-64 (Gnome 3.4) with OmegaT 2.6.3

Discussion

  • Didier Briel
    Didier Briel
    2013-03-27

    <<One external condition should be fulfilled though, launcher file name should be "omegat.desktop">>

    Can you explain that more in details? What is the "launcher"? Has the user something to do?

    Didier

     
  • Lev Abashkin
    Lev Abashkin
    2013-03-27

    Popular desktop environments like Gnome and KDE use desktop entries to launch applications. Desktop entry (http://standards.freedesktop.org/desktop-entry-spec/latest/) is a special file containing application meta-data like its name, binary location, category, icon, etc. Desktop entries could reside either in system directory or in user one (refer to your distribution documentation about this).
    Gnome Shell requires such file from every application to be able to launch it from its UI. Right now OmegaT doesn't ship such file, but it can be easily created with any text editor. Here is mine (using custom SVG icon):

    [Desktop Entry]
    Type=Application
    Terminal=false
    Categories=Development;Translation;Java;Office;
    Name=OmegaT
    GenericName=Computer Aided Translation tool
    Encoding=UTF-8
    Icon=/opt/omegat/images/OmegaT.svg
    Exec=/opt/omegat/OmegaT

    The problem attached patch tries to solve is Gnome Shell failure to identify running OmegaT instance with its desktop entry. If you put OmegaT launcher into Favorites panel and run it, then Gnome Shell will create extra icon for OmegaT there. With the patch applied and having desktop entry named "omegat.desktop" (this is important) OmegaT behaves like a native application in Gnome Shell. I hope this helps :)

     
  • Didier Briel
    Didier Briel
    2013-03-28

    • milestone: --> 2.7
    • status: open --> open-fixed
     
  • Didier Briel
    Didier Briel
    2013-03-28

    Implemented in SVN (/trunk).

    Didier

     
  • Didier Briel
    Didier Briel
    2013-04-25

    • status: open-fixed --> closed-fixed
     
  • Didier Briel
    Didier Briel
    2013-04-25

    Implemented in the released version 3.0.0 of OmegaT.

    Didier