Created attachment 3422
With garcon 0.1.5, if I set up the following:
* foo.desktop in /usr/share/applications which is the real desktop file
* foo.desktop in /usr/share/xubuntu/applications which contains "Hidden=true" to hide this desktop file.
"Foo" shouldn't appear in the menu, but is still there, except if I put it in $XDG_DATA_HOME/applications.
However, it's okay for XDG_CONFIG_DIRS.
So, in garcon-menu-merger.c, it seems directories are not inserted in the correct order ; currently, I obtain:
* /usr/share/xubuntu/applications < /usr/local/share/applications < /usr/share/applications < $XDG_DATA_HOME/applications
but according to the xdg spec, it should be:
* /usr/share/applications < /usr/local/share/applications < /usr/share/xubuntu/applications < $XDG_DATA_HOME/applications
The attached patch fixes this priority issue for me.
My patch is clearly wrong, it inserts dirs at the wrong position, especially the user data dir…
New patch coming.
Created attachment 3562
Proposed patch (fixed)
New attempt. This one should work correctly.
It seems it was committed in 5e0525c346064f88159535f64b8e92caa77f97fd. Thanks ;-)
http://wiki.xfce.org/releng/4.8/prioritybugs#core should probably be updated respectively?
Done. Thanks for the hint.