Once you install your own custom Eclipse (Ubuntu repos are few versions behind) try this recipe to put the Eclipse start icon on your bar:
1. Create/edit sudo emacs /usr/share/applications/eclipse.desktop
## Add following content to file and save ##
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse SDK 3.7.1
Exec=/path/to/eclipse/folder/eclipse
Icon=/path/to/eclipse/folder/icon.xpm
Terminal=false
Type=Application
Categories=Unity;GNOME;Application;Development;
StartupNotify=true
NOTE: absolute paths must, shortcuts like ~ do not get expanded. If you find the secret to the expansion of these common system variables - let me know in comments.
2. Drag and drop the new .desktop file onto your Unity bar.
nautilus /usr/share/applications/
Optional test: To make sure everything worked double click on the shortcut and your eclipse should launch. (if you favorite editor launches .desktop file, don't worry)
Drag the eclipse.desktop onto the Unity bar. If you unity bar is on auto hide, might want to make it revealed for this on.
Done.
No comments:
Post a Comment