Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

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

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
fpemud
Guru
Guru
Posts: 368
Joined: Wed Feb 15, 2012 7:00 am

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

  • Quote

Post by fpemud » Sun Dec 30, 2012 1:56 pm

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: Select all

  <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: 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>fvm-virtualmachines.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;
I'm using cinnamon, perhaps is there any syntax error in my file?
Top
Dominique_71
Veteran
Veteran
User avatar
Posts: 1957
Joined: Wed Aug 17, 2005 1:01 pm
Location: Switzerland (Romandie)

  • Quote

Post by Dominique_71 » Tue Jun 18, 2013 4:31 pm

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.
"Confirm You are a robot." - the singularity
Top
Post Reply

2 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic