Sometimes, you might want to download a program without installing it system wide. Or, you might not have an installer, but still, you would like to have a shortcut in the application menu.
To achieve that, here is what needed to be done:
- Create a desktop entry of the application you want to insert
- Copy this entry to ~/.local/share/applications.
The second part is pretty simple. but how to create a desktop entry file? Here:
Desktop entries are actually simple text file that follow some guidelines.
- The file postfix is "desktop" (same as txt for text file and so on)
- The file contains several key-value pairs, most important are Exec, Terminal and probably Icon.
- You don't have to create it from scratch. Here is a desktop entry for robomongo I've created. Note that you need to remove the txt postfix part for it to work. You should change the other parameters as well (Name for example or comment).
If you wish to copy a shortcut that was installed through a debian package to your desktop, these are usually located in /usr/share/applications.