Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288914 - dev-python/pyxdg-0.17-r1 does not respect XDG_MENU_PREFIX
Summary: dev-python/pyxdg-0.17-r1 does not respect XDG_MENU_PREFIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 18:32 UTC by Sergey Ilinykh
Modified: 2009-10-18 18:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pyxdg-gnome.patch (pyxdg-gnome.patch,937 bytes, patch)
2009-10-13 18:33 UTC, Sergey Ilinykh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Ilinykh 2009-10-13 18:32:50 UTC
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
Comment 1 Sergey Ilinykh 2009-10-13 18:33:45 UTC
Created attachment 206991 [details, diff]
pyxdg-gnome.patch
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-17 23:45:28 UTC
GNOME team: Can you verify this problem?
Comment 3 Mart Raudsepp gentoo-dev 2009-10-18 01:57:18 UTC
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
Comment 4 Mart Raudsepp gentoo-dev 2009-10-18 01:58:14 UTC
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
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-18 10:43:22 UTC
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.
Comment 6 Sergey Ilinykh 2009-10-18 16:56:01 UTC
ok, i've put proper patched version to my overlay
http://rion-overlay.googlecode.com/hg/dev-python/pyxdg/
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-18 17:05:40 UTC
even simpler, use:
prefix = os.environ.get('XDG_MENU_PREFIX', '')
Comment 8 Sergey Ilinykh 2009-10-18 17:11:16 UTC
(In reply to comment #7)
> even simpler, use:
> prefix = os.environ.get('XDG_MENU_PREFIX', '')
> 

thx. fixed =)
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-18 18:01:38 UTC
Fixed in dev-python/pyxdg-0.17-r2.