From: askubuntu.com/questions/…
Newer specs here: https://specifications.freedesktop.org/desktop-entry-spec/latest/apa.html
.desktop files stored in: ~/.local/share/applications
A. Example Desktop Entry File
[Desktop Entry]
Version=1.0
Type=Application
Name=Google Services
Comment=Quicklinks to all Google services!
TryExec=google-chrome
Exec=google-chrome google.com
Icon=google.png
MimeType=image/x-foo;
Actions=Gmail;Calendar;Voice
[Desktop Action Gmail]
Exec=google-chrome mail.google.com
Name=Gmail
Icon=gmail.png
[Desktop Action Calendar]
Exec=google-chrome calendar.google.com
Name=Calendar
Icon=calendar.png