"/etc/xdg/menus/applications-merged"?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
0gb.us

"/etc/xdg/menus/applications-merged"?

Post by 0gb.us »

Reading the comments in "/etc/xdg/menus/mate-applications.menu", it looks like files in "/etc/xdg/menus/applications-merged/" are suposed to be merged with the menu.

Code: Select all

  <!-- Read in overrides and child menus from applications-merged/ -->
  <DefaultMergeDirs/>
However, the files there, one added by Wine to make a Wine submenu and one added by me to add a PlayOnLinux submenu, don't seem to be merged with the menu. So what is that directory for? And where do I find the directory that actually merges with the menu?

Thanks for the help!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
fpemud

Re: "/etc/xdg/menus/applications-merged"?

Post by fpemud »

hi, I'm a gentoo user using cinnamon. I encounter the same problem.

This is my .menu file:

Code: Select all

[fpemud@fpemud-workstation /etc/xdg/menus/applications-merged]$ cat fvm-applications.menu 
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
  <Name>Applications</Name>
  <Menu>
    <Name>Virtual Machines</Name>
    <Directory>VirtMachines.directory</Directory>
    <Include>
      <And>
        <Category>VirtualMachine</Category>
      </And>
    </Include>
  </Menu>
</Menu>
This is my .directory file:

Code: Select all

[fpemud@fpemud-workstation /usr/share/desktop-directories]$ cat fvm-virtualmachines.directory 
[Desktop Entry]
Name=Virtual Machines
Comment=Virtual Machines
Icon=computer
Type=Directory
This is my .desktop file:

Code: Select all

[fpemud@fpemud-workstation ~/.local/share/applications]$ cat fvm_temp.desktop 
[Desktop Entry]
Name=Virtual Machine - temp
Type=Application
Exec=fpemud-virtmanager start temp
TryExec=fpemud-virtmanager start temp
Icon=computer
Categories=VirtualMachine;
according to spec, with these 3 files, I should see a "Virtual Machines" menu and a "Virtual Machine - temp" program in the application menu.
But there's nothing. Anyone can help?
Locked

Return to “Other topics”