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.