! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Menus with <LegacyDir> ignored
Status:
RESOLVED: MOVED

Comments

Description Mikhail T. 2019-01-02 22:14:44 CET
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:

<?xml version="1.0"?>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
	"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">

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

3. Added a separate "Program Menu" element to the panel, configured to use the above remotes.menu as the menu file.
4. 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?..
Comment 1 Git Bot editbugs 2020-05-25 22:48:15 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/garcon/-/issues/7.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #15013

Reported by:
Mikhail T.
Reported on: 2019-01-02
Last modified on: 2020-05-25

People

Assignee:
Jannis Pohlmann
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information