Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Create Standard Categories #4

Open
jkinum opened this issue Dec 13, 2014 · 1 comment
Open

Enhancement: Create Standard Categories #4

jkinum opened this issue Dec 13, 2014 · 1 comment

Comments

@jkinum
Copy link

jkinum commented Dec 13, 2014

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants