Revision [22080]

This is an old revision of AppsDesktop made by darkcity on 2012-07-07 10:02:58.

 

HomePage > Components and HowTos > GUI > WindowManagers

.desktop files

.desktop files are the standard way for Linux programs to provide information about themselves and how they are run. These files are stored at /usr/share/applications. Many programs come ready with a .desktop file. If a menu entry is required include one. Here is the example of AbiWord's:-
[Desktop Entry]
Exec=abiword 
Icon=/usr/share/icons/abiword_48.png
Terminal=false
Type=Application
Categories=X-DocumentUtility;
StartupNotify=true
X-Desktop-File-Install-Version=0.9
MimeType=application/x-abiword;text/x-abiword;text/x-xml-abiword;text/plain;application/msword;application/rtf;application/vnd.plain;application/xhtml+xml;text/html;application/x-crossmark;application/docbook+xml;application/x-t602;application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.sun.xml.writer;application/vnd.stardivision.writer;text/vnd.wap.wml;application/wordperfect6;application/wordperfect5.1;application/vnd.wordperfect;application/x-abicollab;
Name=AbiWord WordProcessor
GenericName=Word Processor
Comment=Compose, edit, and view documents
Name[de]=Textverarbeitung
Comment[de]=AbiWord Textverarbeitung
Name[nb]=Tekstbehandling
Comment[nb]=AbiWord Tekstbehandling
Name[nl]=Tekstverwerker
Comment[nl]=AbiWord tekstverwerker
Name[nn]=Tekstbehandling
Comment[nn]=AbiWord Tekstbehandling
Name[no]=Tekstbehandler
Comment[no]=AbiWord Tekstbehandler
Name[pt]=Processador de Texto
Comment[pt]=AbiWord Processador de Texto
Name[es]=Procesador de textos Abiword
GenericName[es]=Procesador de textos
Comment[es]=Procesador de textos Abiword
Name[fr]=Traitement de texte AbiWord
GenericName[fr]=Traitement de texte
Comment[fr]=Traitement de texte de Gnome Office
Name[pl]=Edytor tekstu AbiWord
Comment[pl]=Edytor tekstu AbiWord
Name[ja]=AbiWord ワードプロセッサ
Comment[ja]=AbiWord ワードプロセッサ

Exec= - Program's execute line. No need to include '%F' because a program started from a menu won't have a file passed to it.
Categories= - Entry controls which submenu they appears in. Run fixmenus and restart window manager after making alterations.

Also see


Categories
CategoryGUI
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki