9 Dec 16:27
Re: sending apps to the right place in the menu
Calum Benson <Calum.Benson <at> Sun.COM>
2008-12-09 15:27:52 GMT
2008-12-09 15:27:52 GMT
On 6 Dec 2008, at 20:35, rosea grammostola wrote: > On Thu, Dec 4, 2008 at 1:22 PM, Calum Benson <Calum.Benson <at> sun.com> > wrote: >> >> See < >> http://standards.freedesktop.org/menu-spec/latest/apc.html#adding-items >> >. >> (You'll probably also need to read the rest of that spec too, if >> you're not >> familiar with it.) >> > > I think Categories specify the place of the application (Ardour) in > the > Menu. But How can I specify that Ardour should be placed in my new > menu > entry 'Recording'? That's what the second bullet point in the link is referring to-- when you add a new submenu, you have to add a new menu file to $sysconfdir/ desktop/menus/applications-merged that describes which menu items should appear in it. For example, on my system I have a file called /etc/xdg/menus/ applications-merged/ggz.menu, which looks like this: <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN" "http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd"> <Menu> <Name>GGZ Gaming Zone</Name> <Directory>ggz.directory</Directory> <Include> <Category>X-GGZ</Category> </Include> <Menu> <Name>GGZ Games</Name> <Directory>ggz-games.directory</Directory> <Include> <Category>X-GGZ-Games</Category> </Include> </Menu> </Menu> This defines a submenu called "GGZ Gaming Zone", on which applications of .desktop file Category "X-GGZ-Games" will appear. The "ggz.directory" file referred to in the third line is /usr/share/ desktop-directories/ggz-directory, which looks like this: [Desktop Entry] Type=Directory Encoding=UTF-8 Name=GGZ Gaming Zone GenericName= Comment= Icon=ggz -- -- CALUM BENSON, Usability Engineer Sun Microsystems Ireland mailto:calum.benson <at> sun.com GNOME Desktop Team http://blogs.sun.com/calum +353 1 819 9771 Any opinions are personal and not necessarily those of Sun Microsystems
RSS Feed