Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299178 - Gnome Applications Menu Doesn't Open
Summary: Gnome Applications Menu Doesn't Open
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-01 06:47 UTC by André Gomes
Modified: 2010-01-04 00:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André Gomes 2010-01-01 06:47:16 UTC
After starting X for the first time, the Applications menu in Gnome doesn't show anything at all.

Reproducible: Always

Steps to Reproduce:
1. Install Gentoo's last version
2. Install and configure Gnome and related using the handbook
3. Install some software like Firefox or Gnome Terminal
4. Start X Server

Actual Results:  
Applications menu is empty (doesn't open).

Expected Results:  
Applications menu should show the installed applications.

I solved it creating a symlink from /etc/xdg/menus/applications.menu to /etc/xdg/menus/gnome-applications.menu so that future changes in the menu are acknowledged.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-01 15:46:00 UTC
The gnome installation guide gives details about how you should start X to get the gnome menu filled without doing such hack.
Comment 2 André Gomes 2010-01-01 18:21:18 UTC
(In reply to comment #1)
> The gnome installation guide gives details about how you should start X to get
> the gnome menu filled without doing such hack.
> 

If so, show me where is that. In http://www.gentoo.org/doc/en/gnome-config.xml I can't see anything related. The problem is not how to populate menu, but more how to make it open. It should open even before populated.

Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-01 18:50:36 UTC
"Starting with gnome-base/gnome-session-2.26.2, you will need to prepend the XDG_MENU_PREFIX variable to get the Gnome menus if you're using the ~/.xinitrc method to start your desktop. (If you're not using ~/.xinitrc, it will be handled automatically for you; no additional configuration is needed.)

Code Listing 2.8: Prepending XDG_MENU_PREFIX to ~/.xinitrc
$ sed '1i\export XDG_MENU_PREFIX=gnome-' ~/.xinitrc
Now start your graphical environment by running startx:"

If that is not your problem, please re-formulate as I clearly did not understood the problem.
Comment 4 André Gomes 2010-01-01 18:59:31 UTC
(In reply to comment #3)
> "Starting with gnome-base/gnome-session-2.26.2, you will need to prepend the
> XDG_MENU_PREFIX variable to get the Gnome menus if you're using the ~/.xinitrc
> method to start your desktop. (If you're not using ~/.xinitrc, it will be
> handled automatically for you; no additional configuration is needed.)
> 
> Code Listing 2.8: Prepending XDG_MENU_PREFIX to ~/.xinitrc
> $ sed '1i\export XDG_MENU_PREFIX=gnome-' ~/.xinitrc
> Now start your graphical environment by running startx:"
> 
> If that is not your problem, please re-formulate as I clearly did not
> understood the problem.
> 

I did those steps while configuring Gnome. After starting X, all the menus work fine except the Applications Menu. When I press it, nothing shows. It's just like I have pressed a selection button (changes to selected but nothing appears). The solution I've presented solves that problem and the menu opens fine. I can attach some screenshots if needed.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-01 19:14:49 UTC
Screenshots won't help. Did you customize your application menu at any point ? could you paste the output of the following command ?
$ env |egrep XDG
Comment 6 André Gomes 2010-01-01 19:25:01 UTC
(In reply to comment #5)
> Screenshots won't help. Did you customize your application menu at any point ?
> could you paste the output of the following command ?
> $ env |egrep XDG
> 

No, I left it as default.

Here it is:

XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/local/share:/usr/share

Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-01 22:08:25 UTC
it looks like you didn't follow the instructions properly. You should have XDG_MENU_PREFIX set to "gnome-" otherwise it will not work.
Comment 8 André Gomes 2010-01-01 22:11:45 UTC
(In reply to comment #7)
> it looks like you didn't follow the instructions properly. You should have
> XDG_MENU_PREFIX set to "gnome-" otherwise it will not work.
> 

I did this:

sed '1i\export XDG_MENU_PREFIX=gnome-' ~/.xinitrc

So what's missing?
Comment 9 André Gomes 2010-01-01 22:50:46 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > it looks like you didn't follow the instructions properly. You should have
> > XDG_MENU_PREFIX set to "gnome-" otherwise it will not work.
> > 
> 
> I did this:
> 
> sed '1i\export XDG_MENU_PREFIX=gnome-' ~/.xinitrc
> 
> So what's missing?
>

I found it. This command it's not ok. You should correct the Handbook.

It should be something like this:

sed '1i\export XDG_MENU_PREFIX=gnome-' ~/.xinitrc > .new && mv .new ~/.xinitrc

Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2010-01-01 22:59:36 UTC
make that "sed -i" ...
Comment 11 Romain Perier (RETIRED) gentoo-dev 2010-01-02 14:38:57 UTC
There is also an elog about that nop ? 
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-02 15:03:00 UTC
point is the guide gives a broken command. We should just patch that quickly, that's all. Re-opening for that purpose.
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-03 23:37:03 UTC
Hello doc team,

could you please fix the gnome installation guide, it seems I forgot to add that -i in the sed expression on line 168 (see comment #9 and #10). Thanks.
Comment 14 nm (RETIRED) gentoo-dev 2010-01-04 00:24:28 UTC
Fixed.
Comment 15 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-04 00:33:03 UTC
thanks.