rosea grammostola | 3 Dec 12:14

sending apps to the right place in the menu

Hi,

I know it is possible to customize the menu in Gnome. But I am wondering if it is also possible to send applications to a specific place in the menu?

For example, I want to add an entry in the menu called 'multimedia players'. Is it possible to manage it so that apps like Rhythmbox, Listen etc. are placed in the new entry when they are installed?

I know I can place them in the entry after installing the app. But my question is about doing this automatically.

I hope I made this clear enough for you.

Thanks in advance,

\r




_______________________________________________
gnome-list mailing list
gnome-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-list
Grammostola Rosea | 3 Dec 23:37

Re: sending apps to the right place in the menu

rosea grammostola wrote:
> Hi,
>
> I know it is possible to customize the menu in Gnome. But I am 
> wondering if it is also possible to send applications to a specific 
> place in the menu?
>
> For example, I want to add an entry in the menu called 'multimedia 
> players'. Is it possible to manage it so that apps like Rhythmbox, 
> Listen etc. are placed in the new entry when they are installed?
>
> I know I can place them in the entry after installing the app. But my 
> question is about doing this automatically.
>
> I hope I made this clear enough for you.
>
> Thanks in advance,
>
> \r
>
>
>
>
someone please?
MHR | 4 Dec 02:33

Re: sending apps to the right place in the menu

On Wed, Dec 3, 2008 at 2:37 PM, Grammostola Rosea
<rosea.grammostola <at> gmail.com> wrote:
> rosea grammostola wrote:
>
> someone please?

I don't know the answer to this, but twelve hours is a REALLY short
time to repost or demand an answer.

Be patient - someone will respond eventually . . . or not.

mhr
Grammostola Rosea | 4 Dec 12:54

Re: sending apps to the right place in the menu

MHR wrote:
> On Wed, Dec 3, 2008 at 2:37 PM, Grammostola Rosea
> <rosea.grammostola <at> gmail.com> wrote:
>   
>> rosea grammostola wrote:
>>
>> someone please?
>>     
>
> I don't know the answer to this, but twelve hours is a REALLY short
> time to repost or demand an answer.
>
> Be patient - someone will respond eventually . . . or not.
>   
Ok, I'll looking forward for responds, patiently.

\s
Calum Benson | 4 Dec 14:22
Favicon

Re: sending apps to the right place in the menu


On 3 Dec 2008, at 11:15, rosea grammostola wrote:

> Hi,
>
> I know it is possible to customize the menu in Gnome. But I am  
> wondering if
> it is also possible to send applications to a specific place in the  
> menu?
>
> For example, I want to add an entry in the menu called 'multimedia  
> players'.
> Is it possible to manage it so that apps like Rhythmbox, Listen etc.  
> are
> placed in the new entry when they are installed?

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.)

Cheeri,
Calum.

--

-- 
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
rosea grammostola | 6 Dec 21:35

Re: sending apps to the right place in the menu



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

On 3 Dec 2008, at 11:15, rosea grammostola wrote:

Hi,

I know it is possible to customize the menu in Gnome. But I am wondering if
it is also possible to send applications to a specific place in the menu?

For example, I want to add an entry in the menu called 'multimedia players'.
Is it possible to manage it so that apps like Rhythmbox, Listen etc. are
placed in the new entry when they are installed?

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.)

Thank you very much!

Those .desktop files seems to play a important role in this.
To point applications to my new menu entry, should I edit the .desktop.in in the source code (tarball) of a package?

And let say I want to make a multimedia distro with some new entries for:

Midi
Recording

How do I point a specific application to that new entry in my menu?

A example of a .desktop.in I found in the Ardour source code (tarball):
[Desktop Entry]
Name=Ardour
Comment=Ardour Digital Audio Workstation
Exec=ardour2
Icon=ardour2
Terminal=false
MimeType=application/x-ardour2;
Type=Application
Categories=AudioVideo;Audio;X-Recorders;X-Multitrack;X-Jack;


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'?

Thanks in advance,

\r

 
_______________________________________________
gnome-list mailing list
gnome-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-list
Calum Benson | 9 Dec 16:27
Favicon

Re: sending apps to the right place in the menu


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
rosea grammostola | 11 Dec 21:12

Re: sending apps to the right place in the menu



On Tue, Dec 9, 2008 at 3:27 PM, Calum Benson <Calum.Benson <at> 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 <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


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




_______________________________________________
gnome-list mailing list
gnome-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-list
Calum Benson | 7 Jan 15:08
Favicon

Re: sending apps to the right place in the menu


On 11 Dec 2008, at 20:12, rosea grammostola wrote:

>> 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?

Getting out of the realms of what I can say for sure myself, now... if  
nobody else here can help, you might have better luck over on xdg <at> freedesktop.org 
, where the menu file specifications are devised and discussed.

<http://lists.freedesktop.org/mailman/listinfo/xdg>

Cheeri,
Calum.

--

-- 
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
Grammostola Rosea | 14 Jan 15:09

Re: sending apps to the right place in the menu

Calum Benson wrote:
>
> On 11 Dec 2008, at 20:12, rosea grammostola wrote:
>
>>> 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?
>
> Getting out of the realms of what I can say for sure myself, now... if 
> nobody else here can help, you might have better luck over on 
> xdg <at> freedesktop.org, where the menu file specifications are devised 
> and discussed.
>
> <http://lists.freedesktop.org/mailman/listinfo/xdg>
>
> Cheeri,
> Calum.
>
Thanks for your help Calum,
I'll check it out. Other comments, suggestions and help is still welcome ;)

\r

Gmane