Skip to content

Add support for <LegacyDir> element

Submitted by Mikhail T.

Assigned to Jannis Pohlmann

Link to original bug (#15013)

Description

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:

  1. Created a subdirectory ~/ansible-menus
  2. Created ~/ansible-menus/remotes.menu with the following content:

<Menu> <Name>AnsibleHosts</Name> <LegacyDir>.</LegacyDir> </Menu>

  1. Added a separate "Program Menu" element to the panel, configured to use the above remotes.menu as the menu file.
  2. 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?..

Edited by Theo Linkspfeifer