Difference between revisions of "Libpnd hub"
Line 6: | Line 6: | ||
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. | 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. | ||
+ | |||
+ | - better iso lang handling .. due to shift from original PXML spec to new PXML spec with better lang support I've not updated some of the internal code, API uses etc to handle it. (even .desktop files could include all iso-lang titles, and let the WM pick through as the spec suggests.) | ||
==PXML.xml and .pnd files== | ==PXML.xml and .pnd files== |
Revision as of 16:10, 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.
- better iso lang handling .. due to shift from original PXML spec to new PXML spec with better lang support I've not updated some of the internal code, API uses etc to handle it. (even .desktop files could include all iso-lang titles, and let the WM pick through as the spec suggests.)
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.