k-o-e
4/28/2020 - 12:56 PM

Gnome: Add application shortcut

FROM: https://unix.stackexchange.com/a/103222

Desktop files may be created in either of two places:
    /usr/share/applications/ for desktop entries available to every user in the system
    ~/.local/share/applications/ for desktop entries available to a single user
    
Desktop file template (save as <name>.desktop in one of above locations)
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Application Name
Comment=Application description
Icon=/path/to/icon.xpm
Exec=/path/to/application/executable
Terminal=false
Categories=Tags;Describing;Application


Eg: For Android Studio
Save below as android-studio.desktop in /usr/share/applications/
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Android Studio
Comment=Launch Android Studio
Icon=/opt/android-studio/bin/studio.png
Exec=/opt/android-studio/bin/studio.sh
Terminal=false
Categories=Development