gw0kin / gnome2-globalmenu

Automatically exported from code.google.com/p/gnome2-globalmenu
GNU General Public License v2.0
0 stars 0 forks source link

I have installed 0.9 version but I don't know how to enable it on Gnome 3 #664

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have installed 0.9 version but I don't know how to enable it on Gnome 3. 
There is no installation guide for this version at all

Original issue reported on code.google.com by abiglinu...@gmail.com on 22 Jul 2011 at 8:54

GoogleCodeExporter commented 8 years ago
As it's supposed to automaticaly be there... If it doesn't show up after 
installation and a reboot, then that's a bug.

Could you open a terminal and say 'env|grep GTK_MODULES' ?

And run gedit in the terminal.

also press Alt-F2 and type lg. in the Extensions 'tab' see if you can see 
Global Menu?

Original comment by rainwood...@gmail.com on 22 Jul 2011 at 2:48

GoogleCodeExporter commented 8 years ago
Could you open a terminal and say 'env|grep GTK_MODULES' ?

yes,seems no problem.

in the Extensions 'tab' see if you can see Global Menu?
Yes,Ican see Global Menu.But I just don't see  the global menu  working in my 
gnome 3 desktop.

I alse saw this message on lg :~

"while loading extension from 
"/usr/local/share/gnome-shell/extensions/globalmenu@globlmenu.org":warning:missi
ng url property in metadata:json"

Original comment by abiglinu...@gmail.com on 22 Jul 2011 at 4:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Looks like the extension is loaded. 

So globalmenu-gtk is loaded as a gtk module if it shows up in env. Does you 
apps still have the menubar in their windows?

what about 'ps |grep globalmenu' ? it should show you something like 
globalmenu-manager running if the dbus autolaunch service is properly 
configured.

I wrote a page listing what the installation is supposed to do:
http://code.google.com/p/gnome2-globalmenu/wiki/InstallGnome3

Original comment by rainwood...@gmail.com on 22 Jul 2011 at 6:21

GoogleCodeExporter commented 8 years ago
Hi
 My apps still have the menubar in there windows
'ps |grep globalmen' output nothing

Original comment by abiglinu...@gmail.com on 23 Jul 2011 at 3:40

GoogleCodeExporter commented 8 years ago
OK. the module is not loaded.

If you run gedit from commandline, what error messages do you see?

Can you try to seek where libglobalmenu-gtk.so is installed on you system, and 
run a gtk program (gedit eg) with

gedit --gtk-module=full_path_and_filename_to_libglobalmenu-gtk.so 

and see if there are any error messages?

Original comment by rainwood...@gmail.com on 23 Jul 2011 at 4:17

GoogleCodeExporter commented 8 years ago
Hi

I got this error message

[weiqiu@love ~]$ gedit
--gtk-module=/user/local/lib/gtk+-3.0/modules/libglobalmenu-gtk.so
Gtk-Message: Failed to load module
"/user/local/lib/gtk+-3.0/modules/libglobalmenu-gtk.so"

** (gedit:1761): WARNING **: Error loading plugin: libhspell.so.0: can't
open share object file:no such file/folder

I do see there is  libglobalmenu-gtk.so in  /user/local/lib/gtk+-3.0/modules

Original comment by abiglinu...@gmail.com on 23 Jul 2011 at 4:37

GoogleCodeExporter commented 8 years ago
https://bbs.archlinux.org/viewtopic.php?id=116178#11

It needs the environment variable GTK_MODULES to include globalmenu-gtk. E. g. 
in your xinitrc or bashrc (assuming you don't depend on any other module):
export GTK_MODULES=globalmenu-gtk
Also, gnome-globalmenu-manager needs to be running. The package provides an 
dbus service file for that, but it does not get launched automatically yet, so 
it needs to be invoked manually.
And it only works with a limited amount of gtk applications. Though its only an 
alpha release and seems to be a complete rewrite in vala/js.
p. s. : it's horrible to use with sloppy focus.
p. p. s. : I forgot to mention i had to symlink the modules:
ln -s /usr/lib/gtk+-3.0/modules/libglobalmenu-gtk.so 
/usr/lib/gtk-3.0/modules/libglobalmenu-gtk.so
ln -s /usr/lib/gtk+-2.0/modules/libglobalmenu-gtk.so 
/usr/lib/gtk-2.0/modules/libglobalmenu-gtk.so
ln -s /usr/lib/gtk+-2.0/modules/libglobalmenu-gtk2.so 
/usr/lib/gtk-2.0/modules/libglobalmenu-gtk2.so
For full gtk2 support:
export GTK_MODULES=globalmenu-gtk:globalmenu-gtk2
And a bonus screenshot:

Original comment by abiglinu...@gmail.com on 23 Jul 2011 at 6:32

GoogleCodeExporter commented 8 years ago
So the modules are installed to an incorrect location. 
I've posted an alpha2 test release where you can specify the whereabouts of the 
GTK3 and GTK2 modules directory with two newly added configure variables:
GTK3_MODULES_DIR and GTK2_MODULES_DIR. just point them to where your disto 
store the gtk modules. (eg, do a locate libcanberra.so)

Also make sure globalmenu.sh is installed to /etc, but /usr/etc with 
--sysconfdir=/etc
in configure; or GTK_MODUELS environment won't be correctly set.

I am not sure about the 'full gtk2 support'. Once installed correctly the gtk2 
and gtk3 modules will have the same names and you don't need the 
globalmenu-gtk2 entry to get gtk2 work.

Original comment by rainwood...@gmail.com on 24 Jul 2011 at 4:44

GoogleCodeExporter commented 8 years ago
I wrote the instructions abiglinu was quoting above, and building with 
GTK{2,3}_MODULES_DIR set to the corresponding directories for make install 
works fine. 

globalmenu.sh is not included in the tarball is it? Could be easily 
autogenerated though. 

The need for GTK_MODULES to include globalmenu-gtk2 was due to a 
misunderstanding of the Archlinux toolchain on my side. The 
libglobalmenu-gtk.so -> libglobalmenu-gtk2.so symlink was pointing at my 
building directory. 

Original comment by flx.b...@gmail.com on 24 Jul 2011 at 5:37

GoogleCodeExporter commented 8 years ago
It was actually a typo in the Makefile. the symlink was pointing to 
libglobalmneu-gtk2.so. I posted a fix as alpha3. 

Original comment by rainwood...@gmail.com on 24 Jul 2011 at 7:30