Create a desktop icon on Ubuntu or Debian based systems

When I shifted to elementary os from Windows, One thing that felt bad for me is that sometimes the application we installed we cannot see the shortcut on the desktop or in the Applications menu. Here I will tell you how to add desktop shortcuts on Ubuntu or Debian based systems.

Adding a desktop shortcut is simple. All you need is to create .desktop file at ~/.local/share/applications or /usr/share/applications/ depending whether you want the shortcut to be accessible only by the local account or by everyone.

  1. Extract the zip file to any folder you want.
  2. Check for the image in the extracted folder.
  3. Create a .desktop file in /usr/share/applications/

4. copy the following into the .desktop file and update it with the details you want.

Version is the version number of the program.

Comment entry is the small dialogue box that appears when hovering over the icon.

Exec is the path to the executable file of the application

Icon is the path to the image of the application. If there is no image in the extracted folder you can download one and use it.

StartupWMClass is added to prevent duplicate icons in the launcher.

For the full list of categories of desktop environments, check the official specification.

Below is the desktop entry of firefox developer edition. I have extracted it to /opt/firefox_dev

After you have copied it save the file and you are done. If the launcher is not added yet, please log out and then login.

Then the launcher will show up.

Node.js | Golang | Developer | amljs.me