Difference between revisions of "Libpnd hub"
Line 2: | Line 2: | ||
==Design considerations== | ==Design considerations== | ||
+ | |||
+ | ==Opportunities for improvement== | ||
+ | |||
+ | Certainly nothing is perfect, especially when chasing moving targets. Some aspects of the library are less efficient, or missing, or buggy, and a few things are noted here should someone have time. The API was designed to be pretty stable so the internal code could be altered without breaking the API interface. | ||
==PXML.xml and .pnd files== | ==PXML.xml and .pnd files== |
Revision as of 16:03, 30 October 2009
Contents
libpnd - the Pandora Library
Design considerations
Opportunities for improvement
Certainly nothing is perfect, especially when chasing moving targets. Some aspects of the library are less efficient, or missing, or buggy, and a few things are noted here should someone have time. The API was designed to be pretty stable so the internal code could be altered without breaking the API interface.
PXML.xml and .pnd files
What are PXML.xml and .pnd files?
File format - PXML.xml
File format - .pnd files
Included shellscripts to generate files
Auto-discovery of applications
Integration with FreeDesktop .desktop systems
dotdesktop (.desktop) files
Icons
There are some rules for Icons in PXML.xml and pnd/directory bundles
- An Icon should be in the root of the directory or .pnd bundle
- An Icon must be specified in the PXML.xml if you expect it to work
- As the PXML.xml is parsed, the icon is sought; if the icon is specified, but not found, it is assumed to be a system default icon and the filename will be placed into the .desktop Icon= line verbatim (ex: Icon=foo.png), and the window manager presumably will know how to locate it. If the icon is specified, and is found, then it will be copied into the configured IconPath, and the full path to it will be used for the Icon= line in the .desktop file ex: Icon=/tmp/myicon.png). If no icon is specified in the PXML file, then no Icon= line will be entered into the .desktop and the WM will presumably apply a default icon based on category or whatever.