You are not logged in.

#1 2009-02-25 16:55:15

kunwon1
Member
Registered: 2009-02-21
Posts: 5

Howto add launchers to top level gnome menu

I couldn't find anything explaining how to do this, but I figured it out, thought I'd share in case anyone else had the same problem

EDIT: I was wrong, you can do this with alacarte, no need for any of this tongue

Here's the end result:
screenshot1q.th.png

nano $HOME/.config/menus/applications.menu
<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
        <Name>Applications</Name>
        <MergeFile>/home/kunwon1/.config/menus/launch.menu</MergeFile>
        <MergeFile type="parent">/etc/xdg/menus/applications.menu</MergeFile>
        <Menu>
        ...file continues...

See the first MergeFile tag? that's my custom menu. It's important that you don't use type="parent" for your include.

Here is launch.menu:

<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
        <Name>Quicklaunch</Name>
                <Include>
                        <Filename>firefox.desktop</Filename>
                </Include>
                <Include>
                        <Filename>xchat.desktop</Filename>
                </Include>
</Menu>

that's the whole file. Mine is just to include launchers on the top level menu, and i'm not even sure there isn't an easier way to do this. But this works for me. You'd have to do it differently to include an actual menu, see this link for details on the makeup of the .menu file. To see your changes you may have to `killall gnome-panel`

Last edited by kunwon1 (2009-03-06 15:38:06)

Offline

#2 2009-02-25 21:51:42

Kilz
Member
Registered: 2008-03-01
Posts: 140

Re: Howto add launchers to top level gnome menu

You could also just use alacarte, just right click on the menu in the taskbar and choose Edit Menus


I trust Microsoft about as far as I can comfortably spit a dead rat.
Cinnamon is a wonderful desktop
"Faith is the substance of things hoped for, the evidence of things not seen."

Offline

#3 2009-02-26 06:50:33

kunwon1
Member
Registered: 2009-02-21
Posts: 5

Re: Howto add launchers to top level gnome menu

Actually, top level items can't be added or manipulated with alacarte smile first thing I tried

Offline

#4 2009-03-06 05:04:49

Kilz
Member
Registered: 2008-03-01
Posts: 140

Re: Howto add launchers to top level gnome menu

Perhaps we are are not talking about the same thing. Here is my menu, edited with alacarte.

Screenshot.png

I added MythTV before, and Added Menu just now. Is this an example of what you wanted to do?


I trust Microsoft about as far as I can comfortably spit a dead rat.
Cinnamon is a wonderful desktop
"Faith is the substance of things hoped for, the evidence of things not seen."

Offline

#5 2009-03-06 15:35:07

kunwon1
Member
Registered: 2009-02-21
Posts: 5

Re: Howto add launchers to top level gnome menu

ah, okay smile apparently I didn't try hard enough. I was trying for some reason to create things in the left-side pane of alacarte... oh well. I stand corrected.

Offline

Board footer

Powered by FluxBB