Revision [7844]
This is an old revision of SoftwarePackageCreation made by coolpup on 2010-06-26 05:07:16.
- Create a .desktop file so that the menu will show an entry for that software application
The rest of this page explains how to create a .desktop file:
- Create a text file using the template displayed in the Appendix below
- Once the file is created it needs to be located in this directory: /usr/share/applications
The entries in the file are {key,value} pairs in the format: Key=Value
Keys are either optional or required. The first three {key,value} pairs from the template are required; and the last two are optional but required for a menu icon to appear.
Note that the "Encoding" key is deprecated, i.e. obsolete and no longer recognized. Any keys not found in the latest freedesktop specification are not recognized.
Menu and Desktop Icons
With regards to .pet package creation where should the menu icon files be placed and what size should they be?- Location: /usr/share/pixmaps
- Format: .xpm format; failing that, .png is to be preferred.
- Size: The .pet software package should contain a minimum of two icons, one of 24x24 for the sub-menu and one of 48x48 for use with a desktop shortcut if the user creates one
Therefore, the abiword.desktop file would typically consist of:
Desktop Entry] Type=Application Name=AbiWord Exec=abiword Comment=word processor Icon=abiword24.png Categories=WordProcessor
Appendix
All Puppy packagers are advised to use this template for the sake of standardization. It adheres to the latest freedesktop specification.[Desktop Entry] Type=Application Name= Exec= Comment= Icon= Categories=
Other optional keys are available which are seldom used:
#Terminal=true #MimeType= #GenericName= #NoDisplay= #Hidden= #OnlyShowIn= #NotShowIn= #TryExec= #Path= #StartupNotify=true #StartupWMClass= #Name[az]= #Name[bg]= #Name[ca]= #Name[cs]= #Name[de]= #Name[dz]= #Name[el]= #Name[en_CA]= #Name[en_GB]= #Name[es]= #Name[et]= #Name[fi]= #Name[fr]= #Name[ga]= #Name[he]= #Name[hr]= #Name[hu]= #Name[it]= #Name[ja]= #Name[ko]= #Name[lt]= #Name[lv]= #Name[mk]= #Name[ml]= #Name[mr]= #Name[ms]= #Name[nb]= #Name[ne]= #Name[nl]= #Name[nn]= #Name[pl]= #Name[pt]= #Name[pt_BR]= #Name[ru]= #Name[sk]= #Name[sr]= #Name[sr@Latn]= #Name[sv]= #Name[te]= #Name[tr]= #Name[uk]= #Name[vi]= #Name[zh_CN]= #Name[zh_TW]=