ghacks Technology News

Edit your GNOME menus


Recently I instructed you how to “Manage your E17 menus“. In that article you saw how easy it was to add to the E17 favorites menu and handle some of the configuration options for the Main menu. The surprising issue was that the Main menu could not be edited (at least not with some serious pain, suffering, and confusion).

In this article I am going to show you how to edit/manage your GNOME menus. This tasks in the GNOME desktop is actually much easier than it is in E17, plus you have the added bonus of actually being able to edit the “Main” menus. This article will illustrate this task with the help of Ubuntu 9.04 and GNOME 2.26.1.

The GNOME menus

In the GNOME desktop there are three menus: Applications, Places, and System. Only two of these menus can be “officially” edited: Applications and System. By “officially” I mean with the built in menu editing tool. The Places menu can be edited very easily as well, and only requires the use of the Nautilus file manager.

With that said, let’s edit some menus.

Places

Since the Places menu is the easiest to edit, we’ll start with that. In order to do this you need to open up the Nautilus file manager. When you are in this application you will notice a Bookmarks menu. That is the key. Click on that menu and take a look at the list of bookmarks. Now go to the Places menu and click on that. Do you see a similarity? You should, because they are the same. When you add a book mark to the Nautilus file manager it automatically adds itself to the Places menu.

Figure 1

Figure 1

To add a bookmark to Nautilus you just need to navigate to the directory you want to add and then click the Bookmarks menu and select Add Bookmark. You can also edit the bookmarks by select Edit Bookmarks from the Bookmarks menu in Nautilus. When you select that a new window will open (see Figure 1) where you can manage your bookmarks. The “Jump To” button, when clicked, takes you (in Nautilus) to whatever bookmark you have selected.

Applications and System menus

Figure 2

Figure 2

Both of these menus are edited with a handy tool called Alacarte. You access this tool by right clicking the menu area (upper left) in GNOME and selecting “Edit Menus”. When you do this the menu editor will open (see Figure 2).

This menu editor is quite simple to use. Let’s create a new menu entry. The entry we will create will be an entry to open the Firefox browser automatically to the Ghacks website. To do this click on the Internet menu (in the left pane) and then click the New Item button (in the right pane). A new window will open where you will enter the following information:

  • Type: Application
  • Name: Ghacks
  • Command: firefox http://www.ghacks.net
  • Comment: Ghacks

The icon should be picked up based on the Command you enter. Since it is an URL the web-mime icon will automatically appear. Enter the above information and click OK. The menu entry will automatically appear in your menu.

From this same window you can:

  • Reorder your menu entries.
  • Show or hide menu entries.
  • Add sub menus.
  • Delete menu entries.
  • Add separators.

Final thoughts

The GNOME desktop has one of the easiest to manage menu systems of any desktop (Linux or not). Give these tools a try and you will find you can make your GNOME menus into exactly what you need for your desktop.




Tags: , , , , ,
Categories: Desktop Manager, Linux, Open Source, Tutorials Basic


Read Related Posts


6 Responses to “Edit your GNOME menus”

  1. pawpawyoung says:

    Very useful tips, thank you.

  2. James D says:

    Okay, so how do you control the behavior of the Places menu as to whether it lists entries directly under Places or collapses them into a Bookmarks sub-menu? The word on the net is that that is impossible without manually recompiling GNOME, thanks to the design of Nautilus (which also makes multiple wallpapers unnecessarily difficult). Perhaps they should look at replacing Nautilus completely in GNOME 3, just as KDE has tried to move away from its swiss-army-knife file manager Konqueror.

  3. magnus says:

    hey,

    Do you know how to edit menu from bash, from script.

    M.

  4. nk says:

    “The GNOME desktop has one of the easiest to manage menu systems of any desktop (Linux or not)” – Surely you must be joking. Windows’ start menu is a LOT easier. Why isn’t there just a drag & drop facility. Alacarte is not stable and crashes.

Trackbacks/Pingbacks

  1. [...] far I have helped you to “Manage your E17 menus” and to “Edit your GNOME menus.” Now it is time to give KDE some love. I admit that I haven’t given KDE much attention [...]

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

© 2005-2009 Ghacks.net. All Rights Reserved. Privacy Policy - About Us