How do I add eclipse to my gnome shell favorites?
Found the answer elsewhere. The .desktop file needs to be named EXACTLY the same as the binary that's launching.
Mine was something like eclipse_ide.desktop and the binary that runs is just "eclipse". Gnome shell does not seem to like that.
- Run this program (its name is
- In the appropriate Menu category from right side panel add your eclipse menu item (by introducing icon, name and command)
- Now gnome shell show your manual installed eclipse in its search and you can search it or add it to favorite easily.
It works for all manual installed program in gnome shell.
In Gnome 3.16 I managed to add an application to favorites by naming the
.desktop file exactly as the window
To know the window
- open a terminal window
- execute the
xpropcommand: the cursor turns in a cross
- click on the relevant window
- read the command output in the terminal, looking for the
WM_CLASSproperty (it is a comma separated list of values, just pick the first one)
In case you are using multiple versions of Eclipse at once and you get conflicting
WM_CLASS values (typically "Eclipse" for any version, AFAIK), you can set your own (i.e. "Eclipse Luna") by editing the relevant
plugin.xml in the Eclipse package you installed.
I.e. for Eclipse Luna JEE the file to edit is