Menu categories
November 19, 2012 —
BarryK
It has been a work-in-progress for some time, such that when a package is installed, it has a menu entry in a sane location in the menu hierarchy (that is, the JWM menu).
For sometime, Woof-built puppies have supported XDG categories of the format:
X-<category>[-<subcategory>]
Examples:
X-Graphic
X-Graphic-camera
What this means, is when if you create a PET package, you can specify the "Categories=" field in the .desktop file with 100% certainty where-abouts the application will be listed in the menu. For example:
Categories=X-Graphic-camera
The grouping of categories is shown in /etc/xdg/menus/hierarchy. This file also shows some example packages, so that you can see the kind of package intended to go into each sub-category. For example, where the 1st and 2nd fields are the Puppy menu hierarchy, and the 3rd field is the XDG categories:
Graphic :camera X-Graphic-camera,Photography #gphoto2 gtkam
Note that these categories are to group packages, even for those that do not have menu entries.
To complete support for this XDG format though, the 'hierarchies' file needed to be expanded. Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/559f015ad8
The next step will be further integration of /usr/local/petget/categories.dat into the PPM. Refer earlier blog post:
http://bkhome.org/archive/blog2/201211/very-fast-deb-db-to-pup-db.html
Comments
categories.dat in PPMUsername: BarryK
OK, I have now integrated 'categories.dat' into the PPM. This means that if a package has an entry in 'categories.dat', when the PPM installs it, the menu entry will be in the expected place. Woof commit: http://bkhome.org/fossil/woof2.cgi/info/7b8c8f3448
Test post
Username: oldyeller
"'oldyeller' has registered.
categories.dat in 2createpackages
Username: BarryK
"I fixed a bug in the previous commit. I have added support for 'categories.dat' to Woof script '2createpackages'. This will ensure that all builtin packages will have the correct menu entry. So, what remains to be done is to add heaps of package names into 'categories.dat'!
Woof commit
Username: BarryK
"And the Woof commit: http://bkhome.org/fossil/woof2.cgi/info/84364774264910d
heaps of package names
Username: L 18 L
"[i]So, what remains to be done is to add heaps of package names into 'categories.dat'! [/i] There is a GUI for this, see http://murga-linux.com/puppy/viewtopic.php?t=82186&start=22 now [img]http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=61700[/img]
.desktop files
Username: BarryK
"L18L, That is superb! Did I overlook the link? Have you uploaded all the .desktop files? ...oh, I see, I have to run the scripts to fetch them!
re : .desktop files
Username: L 18 L
"[i]Did I overlook the link? Have you uploaded all the .desktop files? ...oh, I see, I have to run the scripts to fetch them![/i] Sorry, my fault, wrong link. All needed .desktop files are in applications.tar.gz down loadable from http://murga-linux.com/puppy/viewtopic.php?t=82186&start=12 (not ....13) No need to run scripts s1 ... s4. This [b]was[/b] the part that needs some bandwidth
Tags: woof