[prev in list] [next in list] [prev in thread] [next in thread]
List: gnome
Subject: Re: sending apps to the right place in the menu
From: "rosea grammostola" <rosea.grammostola () gmail ! com>
Date: 2008-12-11 20:12:57
Message-ID: ec026eff0812111212v6f6c6753r300766c976b11dad () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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 <
>>> 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
>
>
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,
\r
[Attachment #5 (text/html)]
<br><br><div class="gmail_quote">On Tue, Dec 9, 2008 at 3:27 PM, Calum Benson <span \
dir="ltr"><<a href="mailto:Calum.Benson@sun.com">Calum.Benson@sun.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d"><br>
On 6 Dec 2008, at 20:35, rosea grammostola wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"> On Thu, Dec \
4, 2008 at 1:22 PM, Calum Benson <<a href="mailto:Calum.Benson@sun.com" \
target="_blank">Calum.Benson@sun.com</a>> wrote:<br> </div><div \
class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>
See <<br>
<a href="http://standards.freedesktop.org/menu-spec/latest/apc.html#adding-items" \
target="_blank">http://standards.freedesktop.org/menu-spec/latest/apc.html#adding-items</a>>.<br>
(You'll probably also need to read the rest of that spec too, if you're \
not<br> familiar with it.)<br>
<br>
</blockquote>
<br></div><div class="Ih2E3d">
I think Categories specify the place of the application (Ardour) in the<br>
Menu. But How can I specify that Ardour should be placed in my new menu<br>
entry 'Recording'?<br>
</div></blockquote>
<br>
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.<br>
<br>
For example, on my system I have a file called \
/etc/xdg/menus/applications-merged/ggz.menu, which looks like this:<br> <br>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 0.8//EN"<br>
"<a href="http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd" \
target="_blank">http://www.freedesktop.org/standards/menu-spec/menu-0.8.dtd</a>"><br>
<br>
<Menu><br>
<Name>GGZ Gaming Zone</Name><br>
<Directory>ggz.directory</Directory><br>
<Include><br>
<Category>X-GGZ</Category><br>
</Include><br>
<br>
<Menu><br>
<Name>GGZ Games</Name><br>
<Directory>ggz-games.directory</Directory><br>
<Include><br>
<Category>X-GGZ-Games</Category><br>
</Include><br>
</Menu><br>
<br>
</Menu><br>
<br>
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:<br>
<br>
[Desktop Entry]<br>
Type=Directory<br>
Encoding=UTF-8<br>
Name=GGZ Gaming Zone<br>
GenericName=<br>
Comment=<br>
Icon=ggz<div><div></div><div class="Wj3C7c"><br>
</div></div></blockquote></div><br>Thanks again. I get it now... almost<br><br>A \
questions remains...<br>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. <br> \
<br>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.<br><br>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?<br> <br>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?<br><br>Sorry if this is a bit of a newbie question, but I \
really like to learn this stuff...<br> <br>Thanks in \
advance,<br><br>\r<br><br><br><br><br>
_______________________________________________
gnome-list mailing list
gnome-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic