prurigro / gnome-catgen

A Gnome 3 application-overview folder configuration tool
MIT License
25 stars 3 forks source link

Enhancement: Create Standard Categories #4

Open jkinum opened 9 years ago

jkinum commented 9 years ago

There are a set of standard categories per the spec at http://standards.freedesktop.org/menu-spec/latest/apa.html

I can create the standard categories via the following hack but it would be nice if the app could do this automagically :):

for i in $(~/gnome-catgen.sh -r 2>/dev/null ); do echo $i >> ~/.local/share/applications-categories/$(grep Categories= /usr/share/applications/$i |sed -r 's/Categories=.(AudioVideo|Audio|Video|Development|Education|Game|Graphics|Network|Office|Science|Settings|System|Utility)./\1/').category;done

Note: there's a "*" star after the Categories=. but it looks like this editor isn't showing that. So you might need to put that in. Also gnome-catgen.sh is just gnome-catgen renamed. I like shell scripts to have a .sh suffix.

prurigro commented 9 years ago

Interesting idea! I've actually been hoping to take a look at ways to speed up the process of adding a huge dump to folders, and this sounds like a good direction to go.

Sorry about the wait btw- I'm not sure why, but this only just appeared in my github notifications list.