Remember Gnome2 Global Menu? It's an applet that adds a global menu (the menu is displayed on the top panel) for Gnome 2 that wasn't very active for a long time because Ubuntu built its own global menu. But it's back!





Gnome Global Menu is currently being ported to GTK3 and an alpha version is already available for download so you can get a global menu in GNOME Shell. Here's a video with the new Gnome Global Menu running in Ubuntu 11.10 (with GNOME Shell): Here's a video with the new Gnome Global Menu running in Ubuntu 11.10 (with GNOME Shell):

The new GTK3 Gnome Global Menu only works with GTK applications (both GTK2 and GTK3) - so don't expect LibreOffice, Firefox or Qt applications to work, at least not yet. Also, it doesn't work with all GTK applications yet - I've only found one for now: Shutter, but there might be more.

Install Global Menu for Gnome Shell (Ubuntu, Fedora, Arch Linux)

Gnome Shell global menu is available in AUR for ArchLinux users but if you don't use Arch, it will take quite a few steps to get it working. I've tried to make a how-to for Ubuntu / Fedora (tested in Ubuntu 11.10 with Gnome Shell 3.2.0 and Fedora 15) but there are quite a few things that could go wrong so you need to have some knowledge about compiling applications to get it working. Before proceeding, you obviously need to install build-essensial, etc.



Important: GNOME Shell Global Menu is currently in alpha so expect to find lots of bugs! for ArchLinux users but if you don't use Arch, it will take quite a few steps to get it working. I've tried to make a how-to for Ubuntu / Fedora () but there are quite a few things that could go wrong so you need to have some knowledge about compiling applications to get it working. Before proceeding, you obviously need to install build-essensial, etc.

sudo apt-get install git-core valac-0.12 libvala-0.12-dev libgtk-3-dev gobject-introspection libgirepository1.0-dev libgtk2.0-dev autotools-dev automake autoconf intltool libtool

sudo yum install git vala-devel gtk3-devel gobject-introspection-devel gtk2-devel autogen automake autoconf intltool glibc-devel libtool

git clone git://github.com/gnome-globalmenu/gnome-globalmenu.git

cd gnome-globalmenu git checkout gnome-3

autoreconf --force --install --verbose ./autogen.sh --prefix=/usr make sudo make GTK2_MODULES_DIR=/usr/lib/gtk-2.0/modules GTK3_MODULES_DIR=/usr/lib/gtk-3.0/modules GLIB_COMPILE_SCHEMAS=/bin/true install sudo glib-compile-schemas /usr/share/glib-2.0/schemas

For GNOME Shell 3.2: (Ubuntu 11.10 or Fedora 16)

sudo ln -sfv /usr/lib/gtk-2.0/modules/libglobalmenu-gtk2.so /usr/lib/gtk-2.0/modules/libglobalmenu-gtk.so sudo sed -i 's/3\.2\.0/3\.2/' /usr/share/gnome-shell/extensions/GlobalMenu@globalmenu.org/metadata.json

sudo sed -i 's/3\.2\.0/3\.0/' /usr/share/gnome-shell/extensions/GlobalMenu@globalmenu.org/metadata.json sudo ln -sfv /usr/lib/gtk-2.0/modules/libglobalmenu-gtk2.so /usr/lib/gtk-2.0/modules/libglobalmenu-gtk.so

gnome-globalmenu-manager & GTK_MODULES=globalmenu-gtk gedit

If you got this far and it's not working, it's most probably something to do with the Gnome Shell version in the GlobalMenu extension metadata file, so here's what do check/do:

Is the extension displayed in GNOME Tweak Tool? If it is, it should work. If it's not, it is indeed the version in the metadata file that's causing this

Go to /usr/share/gnome-shell/extensions/GlobalMenu@globalmenu.org and make sure the Gnome Shell version inside the metadata.json file matches your Gnome Shell version. After making modifications to this file, make sure you restart Gnome Shell and check Gnome Tweak Tool to see if the extension shows up.

7. Optional: if you want to have Gnome Shell Global Menu to start automatically at login for all the supported applications, run the following commands:

sudo cp ~/gnome-globalmenu/globalmenu.sh /etc/profile.d/ sudo chmod +x /etc/profile.d/globalmenu.sh

Removing GNOME Shell Global Menu

sudo rm -rf "/usr/share/gnome-shell/extensions/GlobalMenu@globalmenu.org" sudo rm /etc/profile.d/globalmenu.sh

Instructions based on ArchLinux forums and Aur Package - thanks! A big thanks also to Erkka Juhaninmäki for the tip!

Here's a Fedora 15 screenshot too:Let's get started!Install Gnome Global Menu dependencies and Git:Get the latest Gnome Globalmenu via Git:Switch to the Gnome 3 branch and get the code:Compile and install Gnome Shell Global Menu:If you get an error about Vala not being version 0.12, remove Vala 0.10 and make sure 0.12 is installed (step 1).Fixes:Now open GNOME Tweak Tool (install it in Ubuntu: sudo apt-get install gnome-tweak-tool) and enable the Global Menu extension. For GNOME Shell 3.0.x, you also need to restart GNOME Shell or log out and log back in.To test if the installation was successful, close all running Gedit instances and run the following command in a terminal:Gedit should now use a global menu.Then log out and log back in.To remove it, use the commands below: