Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"/etc/xdg/menus/applications-merged"?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 167

PostPosted: Sun Dec 30, 2012 1:56 pm    Post subject: "/etc/xdg/menus/applications-merged"? Reply with quote

According to the desktop menu spec, it looks like files in "/etc/xdg/menus/applications-merged/" are supposed to be merged with the menu.

Code:
  <DefaultMergeDirs/>


However, after I created these 3 files, I don't see the "Virtual Machines" menu and a "Virtual Machine - temp" program in the application menu.

This is my .menu file:
Code:
[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>fvm-virtualmachines.directory</Directory>
    <Include>
      <And>
        <Category>VirtualMachine</Category>
      </And>
    </Include>
  </Menu>
</Menu>


This is my .directory file:
Code:
[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:
[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;


I'm using cinnamon, perhaps is there any syntax error in my file?
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1505
Location: Switzerland (Romandie)

PostPosted: Tue Jun 18, 2013 4:31 pm    Post subject: Reply with quote

The implementation of the files in /etc/xdg/menus has always been a mess. It is why distributions like arch or debian provide their own applications menu systems, which are able to modify these files.

Also, your dekstop file contain no main category, and to use at least one of them is mandatory..

The only desktop I know that support the additional categories out of the box in any distribution is fvwm-crystal. It use its own database, and can add the missing entries and icons to this database. For that, it doesn't care about the files in /etc/xgd/menu, but only check and use the dekstop files. The database can be customized independently by the user.
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum