since gnome-menus-2.26 installs applications.menu with prefix "gnome-" pyxdg can't find this file anymore. i attach patch which solves the problem Reproducible: Always
Created attachment 206991 [details, diff] pyxdg-gnome.patch
GNOME team: Can you verify this problem?
No. pyxdg should be honoring the XDG_MENU_PREFIX environment variable and look for the applications menu file based on that, as per the specification. However I haven't looked in-depth what pyxdg is doing with that applications.menu file it finds while ignoring XDG_MENU_PREFIX
ah, it's the default if something provided doesn't exist. I think the default it checks for should be ${XDG_MENU_PREFIX}applications.menu then
It indeed looks like pyxdg doesn't actually respect the spec, there is no occurence of XDG_MENU_PREFIX in it's files afaics. This is not a problem specific to gnome as kde does the same, changing cc to fdo to let every othere DE maintainers know.
ok, i've put proper patched version to my overlay http://rion-overlay.googlecode.com/hg/dev-python/pyxdg/
even simpler, use: prefix = os.environ.get('XDG_MENU_PREFIX', '')
(In reply to comment #7) > even simpler, use: > prefix = os.environ.get('XDG_MENU_PREFIX', '') > thx. fixed =)
Fixed in dev-python/pyxdg-0.17-r2.