Global, Mac-like Menubar on GNOME with gnome2-globalmenu

Mon, Feb 16, 2009 (Linux, Software)

gnome2-globalmenu-mac-terminal-example

Caught the introduction of this story over on OS News — apparently folks have been voting on the addition of a global, application-context sensitive menubar in Gnome for a while. The design of the bar is very similar to the way the global bar in Mac works. For those that don’t know, there is a universal menubar across the top of any Mac OS X desktop:

mac-osx-desktop-annotated

the contents of the menubar changes depending on the application that is currently focused. This is different (and sometimes strange) for Windows users that expect to see the application’s menubar inside the application itself (File, Edit, View, etc. menus).

The Linux/Unix desktop environment, GNOME, has always behaved similarly to a Windows desktop, with the applications managing their own menubars. However, given GNOME’s drive to be a simple/intuitive desktop (and the default for the popular Ubuntu Linux distribution), there has always been a very Mac-esque feel to the advancements that GNOME has taken with UI development… almost a hybrid between what Windows would do and what Mac would do. Because of this line that GNOME tended to walk, the desire to have a Mac-esque universal menubar isn’t too far of a stretch for the imagination.

[smartads]

Having this battle fought back in 2006 on Bugzilla resulting in some buggy and initial attempts at a global menubar, the effort never really got the steam it needed to be a viable solution for folks (or make it into GNOME proper). Fast-forward to today, and enter the very intuitive and flexible solution: gnome2-globalmenu project

gnome2-globalmenu-mac-about-dialog

As you can see from the screenshot above, globalmenu is a GNOME applet, requiring no hacked GTK builds or special GNOME builds — simply follow the dead-easy Ubuntu install instructions (or generic install instructions). For the Ubuntu folks, you’ll want to register the following repository depending on the Ubuntu version you are on:

  • Ubuntu 9.04 – Jaunty Jackalope:
    • deb http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main
    • deb-src http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu jaunty main
  • Ubuntu 8.10 – Intrepid Ibex:
    • deb http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu intrepid main
    • deb-src http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu intrepid main
  • Ubuntu 8.04 – Hardy Heron (LTS):
    • deb http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu hardy main
    • deb-src http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu hardy main

NOTE: When registering the repository, be sure to check the Add Source box as well, that will automatically add the deb-src entries above to your sources list.

Next, on the Authentication Tab, you can import the gnome2-globalmenu GPG repository key to authenticate the software against, and then hit Reload and you are all set. When you are done the applet installed and listed in the GNOME Add to Panel dialog:

gnome2-globalmenu-mac-add-to-panel

and away you go!

Configuring globalmenu is straight forward, with some basic preferences you can choose:

gnome2-globalmenu-mac-applet-preferences

and usage is automatic… when you fire up an application, it’s menu-bar does not exist in the application’s window, but is instead promoted to the top of the screen to the global menubar:

gnome2-globalmenu-mac-gimp-scrolling-popout-menus

Right now only GTK-based applications are supported, so for applications like Firefox and OpenOffice, the menubars will still exist inside the application’s main menu, but this is an excellent start to the work.

Let’s hope this rolled into a future GNOME release and built on!

Share This on Your Favorite Social Network:
  • Facebook
  • MySpace
  • Twitter
  • Digg
  • StumbleUpon
  • LinkedIn
  • Reddit
  • FriendFeed
  • Tumblr
  • Suggest to Techmeme via Twitter
  • Technorati
  • Mixx
  • Propeller
  • Fark
  • Slashdot
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Print
, , , , , , , ,

This post was written by:

Riyad Kalla - who has written 41 posts on kallasoft.

"Ultimately I just want to provide a resource that folks find useful."

Contact the author

8 Responses to “Global, Mac-like Menubar on GNOME with gnome2-globalmenu”

  1. Nelson Says:

    This is working wonderfully in Jaunty, but the two applications that I most frequently use are OpenOffice and Firefox! Let’s hope that they will also supported soon.

    Reply

  2. Riyad Kalla Says:

    Nelson glad to hear it, I actually haven’t given it a try yet on Jaunty. Things been stable for you?

    Reply

  3. Alex Says:

    hey, i do the install and everything, but when i right-click on my menubar and click add to panal, the global menu bar applet does not show up. I did everything right I am positive. any help or idea why this would happen? thanks

    Reply

  4. Tom Says:

    Brilliant! I’ve never understood why these menu’s are each window, one of the reasons I like Mac. Now I also have them in Ubuntu!

    Reply

  5. HO Says:

    Brilliant! I’ve never understood why these menu’s are each window, one of the reasons I like Mac. Now I also have them in Ubuntu!

    Reply

  6. TheJoe Says:

    Ummhh.. this post is dated one year ago.. it seems that developers didn’t go too further with firefox, opera, openoffice menus.. am i wrong?

    Reply

    • iso Says:

      That’s probably because they don’t use gtk(the graphical engine running under the hood of gnome). Those programs are only themed to blend in. Instead they uses java, xul and so on that would need special(and probably hard-to-do) workarounds.

      Reply

Trackbacks/Pingbacks

  1. GNU/Linux:Tips and Tricks - Open Source - TechEnclave - 10. Mar, 2009

    [...] Installation – gnome2-globalmenu – installation on various linux platforms – Google Code — Global, Mac-like Menubar on GNOME with gnome2-globalmenu | kallasoft there is ubuntu apt repositories also available. Screen shot: PS: you have to enable global menu [...]

Leave a Reply