Create the following file, with your favourite editor:
- Across all users:
/usr/share/applications/application_name.desktop
- For current user only:
~/.local/share/applications/application_name.desktop
Add the following content to the file and save:
[Desktop Entry]
Version=1.0
Type=Application
Name=<application-name>
Comment=<simple-description>
Exec=<command>
Icon=<path_to_icon_file>
Terminal=false
Categories=GNOME;Application;Development;IDE;GTK;Utility;
StartupWMClass=<unique-name-no-spaces>
StartupNotify=true
References:
[1] https://developer.gnome.org/integration-guide/stable/desktop-files.html.en
[2] https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html