Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 12209  / 2 Years ago, mon, november 7, 2022, 8:08:40

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:



enter image description here



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?


More From » unity

 Answers
7

You write in your question that your .desktop file contains this:



Exec=env UBUNTU_MENUPROXY=/usr/local/eclipse.kepler/eclipse


but it should contain something like this:



Exec=env UBUNTU_MENUPROXY= /usr/local/eclipse.kepler/eclipse


Note the space between = and /. The UBUNTU_MENUPROXY variable needs to be unset for eclipse to work correctly. You are setting it to eclipse and not launching any applications.



Though I don't know if this solves your problem, since I think this shouldn't cause the icon not showing up, just it won't do anything when clicked.






UPDATE: So the above haven't made eclipse to show up, here is one more thing you can try:



Put the .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.



Also note that for the desktop files in ~/.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.


[#27395] Tuesday, November 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ovierman

Total Points: 445
Total Questions: 108
Total Answers: 111

Location: Libya
Member since Fri, Oct 30, 2020
4 Years ago
;