So I recently had to rebuild a Lenovo Thinkpad-T480 with 24GB of RAM and as a developer one of my indispensable tools is EclipseEE. Every time in the past couple of years I've had to look up how to add the Icon to my desktop and to the launcher menu, and every time, I've never found the information in the same place. So now I've fixed it...for mostly selfish reasons.
Adding to Desktop
If you like the command line, navigate to the Desktop, and create the file eclipse.desktop:
$ cd Desktop
$ touch eclipse.desktop
Open with your favorite editor (vi, gedit)
gedit eclipse.desktop
Add the following to the file
[Desktop Entry]
Type=Application
Name=Name of your application
Icon=/path/to/icon
Exec=/path/to/application
Make it executable
$ chmod u+x eclipse.desktop
There you have it on your desktop.
Adding to Launcher Menu
Now take a copy of that same eclipse.desktop file and save it in /home/{username}/.local/share/applications/
Go to the equivalent of the start menu and view applications - there it is, ready to be added to the menu launcher. All you have to do is drag and drop the Icon.
Sources:
Comments