Possible Duplicate:
What is the syntax for .desktop files?
How do I add a custom launcher?
I prefer to create new desktop launchers (.desktop files) using just a text editor, for example to create an iotop launcher I write:
[Desktop Entry]
Name=iotop
Exec=gksudo "gnome-terminal -x iotop"
Type=Application
But I haven't found any documentation on the format. Can someone give me a link to the format specification?
The .desktop file specification is here: http://standards.freedesktop.org/desktop-entry-spec/latest/
An example .desktop file would be:
A .desktop file can have translations integrated, by specifying the language:
If you want to add unity submenus to unity panel icon, then you can create a desktop file. An example from http://maketecheasier.com/8-really-useful-ubuntu-unity-quicklists/2011/05/07
First copy the original .desktop file and open it with your favourite text editor:
Then edit the file:
Now run
nautilus ~/.local/share/applications/
and drag-and-drop your newly-created "Firefox" unity desktop file in the unity bar.The format of .desktop configuration files is a unified standard and described in the FreeDesktop.org Desktop Entry Specification. The files specify how an application is launched, how it appears in menus, and so forth.
The GNOME Dev Center has a good tutorial on creating these files for your own applications.
You can find information about .desktop file here: Desktop Entry Specification