Re: sending apps to the right place in the menu

On Tue, Dec 9, 2008 at 3:27 PM, Calum Benson <Calum Benson sun com> wrote:

On 6 Dec 2008, at 20:35, rosea grammostola wrote:

On Thu, Dec 4, 2008 at 1:22 PM, Calum Benson <Calum Benson sun com> wrote:

See <>.
(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/, which looks like this:

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN"

 <Name>GGZ Gaming Zone</Name>

 <Name>GGZ Games</Name>


This defines a submenu called "GGZ Gaming Zone", on which applications of .desktop file Category "X-GGZ-Games" will appear.  The "" file referred to in the third line is /usr/share/desktop-directories/ggz-directory, which looks like this:

[Desktop Entry]
Name=GGZ Gaming Zone

Thanks again. I get it now... almost

A questions remains...
Let's take Ardour for example. If I install Ardour in for example Debian, it will be placed in a certain position in the menu.

Let's say I want to build a distro with a new submenu. I make a repo for it and I want that Ardour will be placed in the new submenu when people who are using my distro, install it.

What should I edit when I make a debian package of Ardour (or any other app)? How do I make sure Ardour is placed in my 'third party' submenu when it is installed by people?

And are there more possibilities, e.g. to manage that if a certain submenu is not available, Ardour will be placed in a other or default (sub)menu?

Sorry if this is a bit of a newbie question, but I really like to learn this stuff...

Thanks in advance,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]