#701942 gnome-menus: <DefaultMergeDirs> not honoured in /etc/xdg/menus/gnome-applications.menu

Package:
gnome-menus
Source:
gnome-menus
Description:
GNOME implementation of the freedesktop menu specification
Submitter:
Fernando J . Rodríguez
Date:
2014-08-04 20:57:05 UTC
Severity:
normal
#701942#5
Date:
2013-03-01 01:21:25 UTC
From:
To:
Menus coming from definitions in XML files located in /etc/xdg/menus/application-merged or
~/.config/menus/application-merged are ignored in Gnome.

/etc/xdg/menus/gnome-applications.menus does contain a <DefaultMergeDirs> that I think is supposed
to make the contents of /etc/xdg/menus/application-merged and ~/.config/menus/application-merged
be read, but that's not happening.
Or maybe the default merge directories are not those, I don't know.

I can fix this by adding the following line in /etc/xdg/menus/gnome-applications.menu inmediately
below <DefaultMergeDirs>:
<MergeDir>/etc/xdg/menus/applications-merged</MergeDir>

That at least enables whatever definitions or overrides are in the mentioned directory's files.

This bug affects me in 3 ways:

- The additional menus created by the extra-xdg-menus package are missing, and menu items supposed
  to appear in that menus appear insted in the "Others" menu.
- Menus and submenus created by wine are not displayed and their items go flattened into the
  "Others" menu.
- My hand-made XML .menu files for overriding a few system-provided definitions are ignored.


I see this behaviour both in the "Gnome Classic" session's Application menu as well as in the
"Gnome" session's Application selector (or whatever is called the grid of huge application icons).

A final, possibly unrelated note: I've found reports that this behaviour is also present in
Cinnamon or MATE, and in different distributions.

#701942#10
Date:
2014-08-04 20:55:10 UTC
From:
To:
Hey Fernando,

Could you please still reproduce this issue with newer gnome-menus version
like 3.8.0-2 or 3.10.1-1 ?

If so, could you please share an example of
/etc/xdg/menus/applications-merged ?

thanks
regards
althaser