gmusicbrowser Forum

Main board => Suggestions => Topic started by: aboettger on February 13, 2010, 17:41:13

Title: Broken menu in gnome-applet-globalmenu
Post by: aboettger on February 13, 2010, 17:41:13
I have installed the gnome-applet-globalmenu (http://code.google.com/p/gnome2-globalmenu/). The result is, i have a menu for gmusicbrowser, but not happens on a click.
Please help, i love this player and it makes me very unhappy :'(
Title: Re: Broken menu in gnome-applet-globalmenu
Post by: Quentin Sculo on February 14, 2010, 22:01:45
The gmb menus are not very standard because of the way I fill them only when needed. I know that's why I could make them work with keyboard accelerators, and it's probably also the problem with global-menus.
I plan to make them always filled (by updating them each time a change has been made), which should fix this problem.

In the meantime, I know that adding this line :
BEGIN { $ENV{GTK_MODULES}=""; }
after the first line of /usr/bin/gmusicbrowser (gmusicbrowser.pl if not installed) will disable the global-menu for gmusicbrowser, so that at least the menu works.
Another way to do it is by launching gmusicbrowser via a shell script such as this one :
!#/bin/sh
export GTK_MODULES=
exec gmusicbrowser
Title: Re:Broken menu in gnome-applet-globalmenu
Post by: aboettger on February 15, 2010, 09:17:32
Both dnoesn't works for me. First I try the shell script, and than the line in /usr/bin/gmusicbrowser; no usable menus.

I love gmb!
The property in menu applet to show the menu also in the applications inside is no option for me, sorry  :-\
Title: Re: Broken menu in gnome-applet-globalmenu
Post by: Quentin Sculo on February 15, 2010, 17:23:10
it seems there is another way to load modules than using GTK_MODULES.
Looking at the gnome2-globalmenu doc, there is a way to disable it for specific apps by using GTK_MENUBAR_NO_MAC.
So you can put :
export GTK_MENUBAR_NO_MAC="gmusicbrowser gmusicbrowser.pl $GTK_MENUBAR_NO_MAC"
in for example ~/.bashrc or ~/.bash_profile, and then logout
(the gmusicbrowser.pl is only there in case you want to run a non-installed version)
Title: Re:Broken menu in gnome-applet-globalmenu
Post by: aboettger on February 15, 2010, 19:20:33
 ;D
Yeah, you are the best!