Author Topic: Broken menu in gnome-applet-globalmenu  (Read 3661 times)

aboettger

  • Guest
Broken menu in gnome-applet-globalmenu
« on: February 13, 2010, 22: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 :'(

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Broken menu in gnome-applet-globalmenu
« Reply #1 on: February 15, 2010, 03: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 :
Code: [Select]
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 :
Code: [Select]
!#/bin/sh
export GTK_MODULES=
exec gmusicbrowser

aboettger

  • Guest
Re:Broken menu in gnome-applet-globalmenu
« Reply #2 on: February 15, 2010, 14: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  :-\

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Broken menu in gnome-applet-globalmenu
« Reply #3 on: February 15, 2010, 22: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 :
Code: [Select]
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)

aboettger

  • Guest
Re:Broken menu in gnome-applet-globalmenu
« Reply #4 on: February 16, 2010, 00:20:33 »
 ;D
Yeah, you are the best!