ubuntu create desktop shortcut to show in Applications in Main Menu
example: Typora, a markdown editor. I saved it in folder ~/Typora. Now I will create a shortcut.
cd ~
vim typora.desktop
[Desktop Entry]
Version=0.9.58
Name=Typora
Exec=~/Typora/Typora
Icon=~/Typora/favicon-64.png
Type=Application
Name[zh_CN]=Typora
ESC to escape the edit mode in vim. Then use :wq
to save this config file.
Copy this file to /usr/share/applications/
folder.
sudo cp typora.desktop /usr/share/applications/
Now, you can get the shortcut in Applications shortcut list. Add it to your favorites list.