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.
The gnome installation guide gives details about how you should start X to get the gnome menu filled without doing such hack.
(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.
"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.
(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.
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
(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
it looks like you didn't follow the instructions properly. You should have XDG_MENU_PREFIX set to "gnome-" otherwise it will not work.
(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?
(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
make that "sed -i" ...
There is also an elog about that nop ?
point is the guide gives a broken command. We should just patch that quickly, that's all. Re-opening for that purpose.
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.
Fixed.
thanks.