Menus with <LegacyDir> ignored
Submitted by Mikhail T.
Assigned to Jannis Pohlmann
We have a large number of servers and I wanted a GUI way of launching an xterm with an ssh-session into each. The menu-items would be grouped by the Ansible inventories each host is listed in.
To this end I:
- Created a subdirectory ~/ansible-menus
- Created ~/ansible-menus/remotes.menu with the following content:
- Added a separate "Program Menu" element to the panel, configured to use the above remotes.menu as the menu file.
- Created a subdirectory of ~/ansible-menus/ and a couple of .desktop files
According to the https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html#legacy-hierarchies this should be sufficient.
Unfortunately, my new menu remains empty. The only way I can get any entries to show up is by changing LegacyDir to AppDir and explicitly
<Include>-ing each of the .desktop filenames.
My version of Garcon -- built, like the rest of Xfce, by a FreeBSD port -- is 0.6.2. Unfortunately, that's not a option under the Version-menu (which lists only 0.6.0 and 0.6.1) at present. It appears, LegacyDir was not a supported verb nine years ago (https://gitlab.xfce.org/xfce/garcon/blob/master/STATUS). Has it really not improved since then?..