How to Add Application to Ubuntu Launcher

For most of the times, chances are that you can launch one application and right click on the icon in Launcher and click “Lock to Launcher” to make the application icon stay in Launcher for easy access. 

However, there are a few programs that does not support Launcher. 

After researching for a while, I found the answer on StackOverflow, but can’t locate the original post. 

Here are the steps to manually make it happen. 

First, create a .desktop file to the application (eclipse for example) in the applications directory:

gedit ~/.local/share/applications/eclipse.desktop

Then, paste the following inside (don’t forget to edit Icon and Exec values):

[Desktop Entry]
Comment=Eclipse Integrated Development Environment
Icon=** something like /opt/eclipse/icon.xpm **
Exec= ** something like /opt/eclipse/eclipse **


Note: to locate your eclipse, issue this command:

which eclipse

Finally, drag the .desktop file onto the launcher.

Now you have it. Cheers!