Global menu the new gnome macmenu
On 12 March 2008,
in applications, computing,
by ayoli
The popular hack to gtk and applet that imitates the Mac menu isnt’t maintained by its original creator AdQ.
Fortunately, rainwoodman started a new project based on adq patch and applet (now, totally rewritten from scratch) : globalmenu.
Now, the menus are detached to the panel applet only if this one is running, the menu key bindings (eg Alt+F) are now functional.
Here is a short guide with two possible methods to install global menu on Ubuntu.
/!\ WARNING : This how to works only with the 0.4 series of globalmenu (svn revision up to around 980) and may not work on Ubuntu Intrepid, Check the new how to for the 0.6 series
warning : regardless of the choosen method, before trying this hell thing, read very carefully the instructions and remind that globalmenu is an alpha software !
if you encounter problems, try to ask here
The deb packages way to install global menu
WARNING : this method works only with gutsy (ubuntu 7.10) 32 bits. there is at the moment no package for 64bits systems due to a compiling issue
First download the pack gnome-globalmenu-0.4.2_ubuntu-gusty-svn679.tar.gz here (the svn number may change)
Assuming you have downloaded the pack in your user home directory (if not put it there), open a terminal (menu Applications>Accessories>Terminal) and apply the following commands (use copy and paste to avoid typos):
Unarchive the packages :
tar xzvf gnome-globalmenu-0.4.2_ubuntu-gusty-svn679.tar.gz
then go to the directory where the packages have been extracted :
cd gnome-globalmenu
now install them with this command :
sudo dpkg - *.deb
if you got some errors at this step, you may need to try this command :
sudo dpkg -i --force-overwrite *.deb
now, edit (or create) the ~/.gnomerc file:
gedit ~/.gnomerc
add this line to the file :
export GTK_MODULES=libgnomenu
save and exit gedit.
Finally, restart your session, add the global menu applet to your panel (right click on an empty part of the panel and choose “add to panel” from the menu).
That’s all, you should now have your applications menu in the panel.
building global menu yourself to be bleeding edge.
Warning: There is a compiling issue on 64 bits systems, if you manage to compile this, please post an issue here
Open a terminal (menu Applications>Accessories>Terminal) and apply the following commands (use copy and paste to avoid typos):
first, install all needed build tools :
sudo apt-get install build-essential autoconf automake1.9 subversion fakeroot checkinstall
make a directory :
mkdir globalmenu-install
go in this directory :
cd globalmenu-install
checkout the source code with subversion :
svn co http://gnome2-globalmenu.googlecode.com/svn/trunk/ gnome2-globalmenu-applet-0.4.2
change to this directory :
cd gnome2-globalmenu-applet-0.4.2/gtk+-aqd/
get the gtk2.0 source code :
apt-get source libgtk2.0-0
and the required deps to build gtk :
sudo apt-get build-dep libgtk2.0-0
copy the patch to the debian dir in the gtk source directory :
(note: gutsy people want to use the patch.diff from here, download it and extract it in the directory listed bellow instead of copy the patch from trunk)
cp patch.diff gtk+2.0-2.12.0/debian/patches/
edit the series file :
gedit gtk+2.0-2.12.0/debian/patches/series
add this at the end of the file :
patch.diff
save and exit gedit.
edit the chanlog file to increase the release number (the number after ubuntu word in the package name),
this avoid that update manager wants to reinstall original distribution gtk packages.
gedit gtk+2.0-2.12.0/debian/changelog
add this at the very top of the file (respect the indentation and white line after mail/date line or it will give you an error at build)
gtk+2.0 (2.12.0-1ubuntu3.1~adq) gutsy; urgency=low
* debian/patches/patch.diff:
- patch from rainwoodman, for globalmenu integration
-- Ayoli <ayolinux@gmail.com> Tue, 10 Mar 2008 10:29:09 +0200
<br style="line-height:13px;" />
save and exit gedit.
go to the gtk2.0 source directory :
cd gtk+2.0-2.12.0now, we’re ready to build gtk, here we go :
dpkg-buildpackage -rfakerootnote: this process will take about 30 min of your life. Once this is finished, go up and install the debs :
cd .. && sudo dpkg -i *.debgo up once again :
cd ..before building the applet, install the required deps :
sudo apt-get install libgconf2-dev libpanel-applet2-dev libwnck-devnow we can run the autogen.sh :
./autogen.shand then the configure script :
./configure --prefix=/usr --enable-tracing=no --enable-xfce-plugin=no --disable-maintainer-modenext step is make :
makeand install with checkinstall (this make uninstall easier) :
sudo checkinstallafter that run this :
sudo ldconfignow, edit (or create) the ~/.gnomerc file:
gedit ~/.gnomercadd this line to the file :
export GTK_MODULES=libgnomenusave and exit gedit. Finally, restart your session, add the global menu applet to your panel (right click on an empty part of the panel and choose “add to panel” from the menu). That’s all, you should now have your applications menu in the panel.






english
français
@anachronox : just remove the gnome2-globalmenu applet package, then reinstall the ubuntu original packages with this command (this forces version) :
sudo apt-get install libgtk2.0-0=2.12.9-3ubuntu2In the step: “dpkg-buildpackage -rfakeroot” I receive this message:
“gpg: AVISO: permissões inseguras no arquivo de configuração:
`/home/alan/.gnupg/gpg.conf’
gpg: ignorado “Ayoli ”: chave secreta não disponível
gpg: [stdin]: clearsign failed: chave secreta não disponível
dpkg-genchanges >../gtk+2.0_2.12.9-3ubuntu5_amd64.changes
dpkg-genchanges: não inclui o código fonte original no upload
dpkg-buildpackage: binary and diff upload (original source NOT included)
dpkg-buildpackage: warning: Falhou ao assinar os ficheiros .dsc e .changes”
@alanfrank : You can safely ignore this message.
Le problème avec le changement de permissions de la bibliothèque est un bug connu de checkinstall. Une solution est de désactiver “fstrans”.
The issue with the library file mode change is a well-known checkinstall bug. A solution is to disable “fstrans”.
sudo checkinstall—fstrans=no
@Warren Seine: thanks for this useful info, I’ll integrate this to the guide later.
@typpex & ellimistx99 : I had the same problem untill I installed the dev libraries libgnome-menu and gnome-desktop :
sudo apt-get install libgnome2-dev gnome-desktop-dev
Then try :
./configure—prefix=/usr—enable-tracing=no—enable-xfce-plugin=no—disable-maintainer-mode
again and your makefile should be created. Then
make
and so on.
Thank you very much,
I have done it successfully and smoothly on Hardy AMD64. I only have one question, why does the upper left corner of my menu always showed “label” caption all the time. Should it be an application name instead? How do I fix it?
Bonjour ayoli
La version svn de gnome2-globalmenu contient deux patchs, patch.diff et overflow.diff. Dois-je copier ces deux patchs dans le répertoire /debian/patches/ ?
Merci
@NaNoNyMe : non, juste le patch.diff a priori.
@Doggiedoll : I believe that is an issue with recent revisions (branch 0.5). You may want to ask the dev at the ubuntuforums thread or on his google code page (links are at the top of the post).
@robiouilliame : thanks for pointing that, I will add these deps in the apt-get line.
Hey, after the “dpkg-buildpackage -rfakeroot” command I get following message :
Applying patch patch.diff
make: *** [debian/stampdir/patch-stamp] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
What’s wrong? I’m trying to build it on Ubuntu Hardy Heron.
@ solidslash
after
I am also getting the same error
dpkg-buildpackage -rfakeroot
Applying patch 095_gtk-im-module-setting.papatch.difftch
make: *** [debian/stampdir/patch-stamp] Error 1
By the way, i had to change some of the commands. I had to replace
gtk+2.0-2.12.0 with gtk+2.0-2.12.9
since that is the version i got.