Most of the applications on Ubuntu comes without installer package. Installer packages automatically install the shortcut for the ease to run the application from unity dash. Where without installer packages, you just need to extract the package and run the executable file. Therefore, whenever you need to run the application, you will have to go to extracted package directory and run the application by executing run file.
How to create .desktop shortcut
Following this articles, you will know how to make and add custom shortcut for non-installer packages of applications.
First of all, create an empty document in a folder. Suppose it’s desktop folder. Right click on your desktop, select ‘New Document’ and click on ‘Create new Document’.
Name it whatever you like ending with ‘.desktop’. It is always suggested to use the application name.
Save it and open the file in editor to update the information. Information about shortcut is as following format.
Comment=We are making shortcut for some random applications
Exec=/home/ *application Directory* / *File to execute*
The path to the icon file that will be used for the file, it’s likely that the one that you put doesn’t exists, I have changed it for a generic one. You should change this to the file that you want the icon to use. It is the best practice to copy the image to System icons directory as mentioned already in the format text.
To use the desktop file from the Dash you will need to copy it to /usr/share/applications for any user to be able to use it or to ~/.local/share/applications (where ~ means your user directory) if you just want it to be available for one user.
To copy desktop file to /usr/share/applications, you need the administrative permissions. Learn how to get Administrative Permissions.