Comment 11 for bug 1315880

Revision history for this message
OmegaPhil (omegaphil) wrote :

Looking into this further, menulibre does not write Include nodes under Menu nodes, with all desktop files being added via Filename nodes under Layout.

Alacarte-made entries remain here, but due to not being explicitly included under particular named menus, GMenu merges them only under the Other category - and this is not included in the XFCE4 applications menu. util/gnome-menu-spec-test is available in the gmenu library source to get a quick output of what gmenu thinks the menu structure should be (e.g. via the Debian libgnome-menu-3-0 source package).

Subsequent reloading of the XML via menulibre's MenuEditor.py:MenuEditor.load therefore causes the entries to disappear from the named menus.

Looking at alacarte, MenuEditor.py:MenuEditor.addItem always adds an Include node when you add an entry. This feels a bit spammy, as presumably a proper category should really be used to place a menu entry normally.

Do you agree that for menu entries that don't have a category, menulibre should write out explicit Include nodes like alacarte does? If yes I'll do that and hopefully this corruption will be fixed.