Opened 14 years ago

Last modified 12 years ago

#94 new defect

load xdg menu spec instead of just parsing .desktop files

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 1.0
Component: Client Keywords:
Cc: troycauble@…

Description (last modified by Antoine Martin)

The spec is here.
Maybe we can replace the whole logic of excluded apps with standard /menus/*.menu files? Ship our own in /usr/share/winswitch/ and use them as templates (copy them to the user's config directory?)
We should also parse the categories from '/usr/share/desktop-directories/' rather than implementing our own complicated logic for grouping into categories.

I wished there was some python library to load all these files into data structures already... And there is: http://www.freedesktop.org/wiki/Software/pyxdg (shame I only discovered it after writing so much code...)

See also #152

Change History (4)

comment:1 Changed 13 years ago by Antoine Martin

Description: modified (diff)

comment:2 Changed 13 years ago by Antoine Martin

Description: modified (diff)

comment:3 Changed 12 years ago by Antoine Martin

r4896 improves things

comment:4 Changed 12 years ago by tlc

Cc: troycauble@… added
Note: See TracTickets for help on using tickets.