Menu categories

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/blog2/?viewDetailed=00028


Posted on 19 Nov 2012, 10:09


Comments:

Posted on 19 Nov 2012, 19:58 by BarryK
categories.dat in PPM
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



Posted on 20 Nov 2012, 7:54 by oldyeller
Test post
'oldyeller' has registered.



Posted on 20 Nov 2012, 8:16 by BarryK
categories.dat in 2createpackages
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'!



Posted on 20 Nov 2012, 8:18 by BarryK
Woof commit
And the Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/84364774264910d



Posted on 21 Nov 2012, 6:54 by L 18 L
heaps of package names
So, what remains to be done is to add heaps of package names into 'categories.dat'!

There is a GUI for this, see
http://murga-linux.com/puppy/viewtopic.php?t=82186&start=22 now






Posted on 21 Nov 2012, 8:52 by BarryK
.desktop files
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!




Posted on 21 Nov 2012, 16:46 by L 18 L
re : .desktop files
Did I overlook the link? Have you uploaded all the .desktop files?
...oh, I see, I have to run the scripts to fetch them!


Sorry, my fault, wrong link.
All needed .desktop files are in applications.tar.gz down loadable fromhttp://murga-linux.com/puppy/viewtopic.php?t=82186&start=12 target=_blank>
http://murga-linux.com/puppy/viewtopic.php?t=82186&start=12
(not ....13)

No need to run scripts s1 ... s4.
This was the part that needs some bandwidth