I upgraded Eclipse yesterday to version 4.3 and was faced with the missing menus bug. To get the menus back one has to start Eclipse in a different way, thus I tried to create a new item in the Main Menu.
For some reason the item is not stored by the Main Menu, I get no error messages when I click the OK button in the new item dialogue, but nothing changes in the Application group.
Am I doing something wrong? Thanks.
Update I: user wilf tells me to add a file named eclipse.desktop
in /usr/share/applications
but this has not created an new item in the Main Menu:
Update II: Here's how my eclipse.dektop
file looks like:
$ ls -la /usr/share/applications/e*
-rw-r--r-- 1 root root 3083 May 11 2012 /usr/share/applications/easytag.desktop
-rw-r--r-- 1 root root 167 Jan 25 17:02 /usr/share/applications/eclipse.desktop
-rw-r--r-- 1 root root 921 Oct 31 20:30 /usr/share/applications/empathy.desktop
-rw-r--r-- 1 root root 856 Jun 29 2013 /usr/share/applications/eog.desktop
-rw-r--r-- 1 root root 894 Oct 8 23:21 /usr/share/applications/evince.desktop
-rw-r--r-- 1 root root 873 Oct 8 23:21 /usr/share/applications/evince-previewer.desktop
$ cat /usr/share/applications/eclipse.desktop
[Desktop Entry]
Type=Application
Name=Eclipse
Icon=eclipse
Exec=env UBUNTU_MENUPROXY=/usr/local/eclipse.kepler/eclipse
Terminal=false
Categories=Development;IDE;Java;
Beyond this, is there any other way to get the Eclipse icon showing up in the dash?
.desktop
file had the Categories section. When I say "Main Menu" I refer to Alacarte, since that is the name by which it is shown in the Dash (this is rather confusing). The Eclipse item is not present anywhere at the moment in Alacarte, neither in Others, nor in Programming, nor anywhere else. It isn't shown in the Dash either, weather I search for it or going through the sections in Applications. – Luís de Sousa Jan 31 '14 at 08:16.desktop
file in the~/.local/share/applications/
directory, this is where you can store per-user .desktop files, maybe unity will detect it from there. If it does, don't forget that the .desktop files in that directory is only available to the user in whose home directory the .desktop file is located, so if you have more users just copy the .desktop file to every users~/.local/share/applications/
directory. – falconer Jan 31 '14 at 10:35~/.local/share/applications/
in which case that .desktop file takes precedence over the/usr/share/applications/eclipse.desktop
desktop file, and the latter is not shown anywhere. This can be a cause, but that would mean someone put an eclipse.desktop file into~/.local/share/applications/
. – falconer Jan 31 '14 at 10:37~/.local/share/applications/
it is needed to logout to show up in the dash. I don't know why, but it is so on my side. So if you put there the .desktop file don't forget to logout/logback. – falconer Jan 31 '14 at 11:09eclipse.desktop
in~/.local/share/applications/
so I just copied there the one in/usr/share/applications
and log out. After logging in Eclipse is now finally showing up in the Dash and in Alacarte. This is mighty weird but indeed answers my question. Please add these comments to your answer so I can accept it. Any idea why the.desktop
file in/usr/share/applications
is being ignored? Thanks. – Luís de Sousa Feb 01 '14 at 08:42/usr/share/applications
dir with the same contents as yours in the question, and it showed up immediately. You may try to test whether if you rename that .desktop file from eclipse.desktop to e.g. aaabbb.desktop make it show up. My only clue is this, that there is a naming conflict somewhere. – falconer Feb 01 '14 at 09:51