Global menu the new gnome macmenu

On 12 March 2008, in applications, computing, by ayoli

global menu new mac menuThe 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.0
now, we’re ready to build gtk, here we go :
dpkg-buildpackage -rfakeroot
note: this process will take about 30 min of your life. Once this is finished, go up and install the debs :
cd .. && sudo dpkg -i *.deb
go up once again :
cd ..
before building the applet, install the required deps :
sudo apt-get install libgconf2-dev libpanel-applet2-dev libwnck-dev
now we can run the autogen.sh :
./autogen.sh
and then the configure script :
./configure --prefix=/usr --enable-tracing=no --enable-xfce-plugin=no --disable-maintainer-mode
next step is make :
make
and install with checkinstall (this make uninstall easier) :
sudo checkinstall
after that run this :
sudo ldconfig
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.
Tagged with:  

41 Responses to “Global menu the new gnome macmenu”

  1. arkde says:

    I appended the configure line with the disable text but checkinstall still complains about the libgnome

  2. arkde says:

    Never mind. I got the applet to work. I restarted at ./autogen.sh, used the original configure line, and used “sudo make install” instead of “sudo checkinstall.”

    I had global menu applet installed prior to upgraded to Hardy, though.

  3. ayoli says:

    Glad you manage it, even if it is really weird that sudo checkinstall fails but not sudo make install.
    You should have run a “make clean” before running again the autogen and configure with th—disable-maintainer-mode option.

  4. ellimistx99 says:

    Hi, great guide here, I tried your “deb package way” to install global menu. Everything worked except for when I restarted my session and I add the global menu to my bar, the only thing I can get it to show is the Title, and not the “File Edit View…”. I am currently using Hardy 8.04. If you can, please email me. Thanks,

  5. ayoli says:

    the deb packages way is only for gutsy, you should use the other method.

  6. typpex says:

    Bonjour,
    Etant un tout nouveau utilisateur de linux, j’ai installé ubuntu hardy heron à l’aide wubi.exe et j’ai suivi ta procédure pour avoir le macmenu sous hardy heron hors j’ai un petit probleme arrive à l’étape ou il faut faire make. J’ai ce message quand je tape make :

    typpex@typpex-laptop:~/globalmenu-install/trunk$ make
    make: *** Pas de cibles spécifiées et aucun makefile n’a été trouvé. Arrêt.

    As-tu une idée de pourquoi je n’arrive pas a compiler ?

  7. ayoli says:

    Ce genre d’installation n’est pas trop recommandée pour les nouveaux utilisateurs, mais je vais qd meme essayer de t’aider.
    Qu’as tu obtenu comme résultat des deux commandes précédentes (avant make, a savoir ./autogen.sh et ./configure.sh suivi de ses parametres) ?
    As tu bien respecté les étapes de la procédure ?

  8. typpex says:

    Merci de bien vouloir m’aidé :)
    http://rafb.net/p/TgMqGy33.html <
    - sortie de ./autogen.sh
    http://rafb.net/p/LP1B5×49.html < —sortie de ./configure

  9. ayoli says:

    Sans vouloir faire de la mauvaise vonlonté, j’ai l’impression que tes sorties sont tronquées, en tout cas, ne voyant pas d’erreur à la fin du configure, je ne sais pas trop quoi te dire.
    A priori, ton erreur initiale (ton precedent commentaire) indique qu’il n’y a pas de Makefile (fichier contenant les regles de compilation et, généré par le script configure).
    As tu bien installé toutes les dépendances requises (les lignes apt-get install du guide) ?

  10. ellimistx99 says:

    Hello, I tried to do it the “hard way” this time,but right after the autogen part where I have to make, it says, “No targets specified and no makefile found. I tried to do the configure with the—disable-maintainer-mode, and without that. Any ideas? THANKS

  11. ayoli says:

    @ellimistx99 : Actually, I have no clue about this. You aren’t the first to have this issue.
    The autogen script gives some errors about m4 files but they can be ignored, then run the configure script with the –disable-maintainer-mode option.
    If there’s no errors at the end of the configure, make should work.

  12. yakko78 says:

    This method works for Hardy Heron too.
    :D

  13. Nick says:

    I’ve been waiting for something like this. I could never get the hack to work. Thanks ayoli!

  14. ayoli says:

    @Nick : you’re most welcome :)

  15. anachronox says:

    I like this! But I will just wait until more applications are supported.

    How do I go back to my previous package configuration if I used the .deb way mentioned above? I try to remove the package in the .tar.gz file (so that I can install the originals from the repository), but they have >1GB of dependancies!

Leave a Reply

Free WordPress Themes

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!