Revision [224]

This is an old revision of SoftwarePackageCreation made by coolpup on 2009-08-04 00:52:40.


For the creation of software packages which require a menu entry perform the following:

The rest of this page explains how to create a <i>.desktop</i> file.

.desktop File

Please use this template for the .desktop file. It adheres to the latest freedesktop specification. It is also displayed in the Appendix below.

Once the file is created it needs to be located in this directory:
The entries in the file are {key,value} pairs in the format:
Note that the <code>Encoding</code> key is deprecated, i.e. obsolete and no longer recognized. Any keys not found in the latest freedesktop specification are not recognized.

Keys are either optional or required. That is why the {key,value} pairs have been ordered into 3 groups. The first is required and the rest are optional. The second group will be often used, and the third is used under rare and special circumstances.

Menu and Desktop Icons

With regards to .PET package creation where should the menu icon files be placed and what size should they be (16x16, 24x24, or 48x48)?<br />

There are necessarily different standard locations for different types of icons. <br />

/usr/local/libs/X11/mini-icons is for all of the sub-menu icons and the preferred size is 24x24 although most of the legacy icons are 16x16. These smaller versions will eventually be weeded out as resolutions increase and applications are updated. They were a legacy of early versions of JWM which didn't support larger menu icons.

/usr/local/libs/X11/pixmaps is only for the desktop icons that are part of the packaged desktop themes and their associated icons for the 1st level menus. For desktop icons the preferred size is 48x48. For 1st level menu icons the preferred size is 24x24. We also need to standardise on a given set of icons that constitutes a desktop theme. Some themes call icons by one name, others by another. That causes many problems. We are keen to ensure that /usr/local/libs/X11/pixmaps is kept exclusively for those icons that are used in the pinboard and 1st level menus. That is because that is what Barry's desktop icon switcher uses. We insist that only desktop theme icons go in /usr/local/lib/X11/pixmaps where they are regularly overwritten by themes from the /usr/local/libs/X11/themes directories.

Legacy locations from other Linux distributions (Debian, Red Hat, etc.) [We would like to be able to do away with them but the first converted .DEB or .RPM application that installs will place its own icons in there anyway.]

Icon format is another bone of contention. The preferred format for <u>all</u> icons, regardless of their purpose, is .XPM format. Failing that, .PNG is to be preferred. Renaming .PNG files with an .XPM extension maintains some consistency of naming if not underlying format.

The puppy dotpet file should contain not one but <u>two</u> icons:
  • one of 24x24 for the sub-menu (placed in <i>/usr/local/lib/X11/mini-icons</i>) and called into the menu from the associated <i>/usr/share/applications/*.desktop</i> file
  • one of 48x48 for use with a desktop shortcut if the user creates one; the latter icon should be placed in either /usr/share/pixmaps or /usr/share/icons - /usr/share/pixmaps is preferred

Therefore the <i>abiword.desktop</i> file would be:
[Desktop Entry]
Name=AbiWord word processor
Comment=AbiWord word processor


<u>All Puppy packagers are encouraged to use this template for the sake of standardization.</u>

[Desktop Entry]



There is one comment on this page. [Display comment]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki