GNOME Bugzilla – Bug 170702
merging user menus incorrectly handled
Last modified: 2006-07-06 23:30:35 UTC
Distribution/Version: Gentoo (gnome-2.10.0_pre0 ebuilds) 1. Create the following file in ~/.config/menus/applications.menu: <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd"> <Menu> <Name>Applications</Name> <MergeFile>/etc/xdg/menus/applications.menu</MergeFile> <Menu> <Name>System</Name> <Exclude> <Filename>gdmflexiserver-xnest.desktop</Filename> </Exclude> </Menu> </Menu> 2. killall gnome-panel Expected: "System Tools" menu does not contain "New Login in Nested Window" - it should actually appear under "Other", since it's UnAllocated Actual: "System Tools" appears twice, the first time without "New Login in Nested Window", the second time with it. According to the spec: (http://standards.freedesktop.org/menu-spec/menu-spec-latest.html#merge-algorithm) "...if the user's menu file merges the system menu file, the user can always override what the system menu specifies by placing elements after the <MergeFile> that incorporates the system file."
Apologies, I've just realised that I had the following line in /etc/xdg/menus/applications.menu menu: <MergeFile>/home/matt/.config/menus/applications.menu</MergeFile>. Without that line, only one "System Tools" menu appears, but "New Login in Nested Window" is still in it. Incidentally, I'm testing this against pyxdg, which handles both cases correctly, moving "New Login..." to "Other"
> "System Tools" menu does not contain "New Login in Nested Window" - it should > actually appear under "Other", since it's UnAllocated That's incorrect - an item which has been <Exclude>d is still considered allocated. Check xdg archives over the last few months for details. As for the bug you're trying to report, please just included the output of MENU_VERBOSE=1 gnome-menu-spec-test which shows the problem.
Oh boy, I seem to have been having a real day. I can't duplicate this on this morning's clean setup. Apologies for wasting time. Thanks for pointing out gnome-menu-spec-test, though.
okay, closing as per last comment. matt, thanks for the feedback. :-)