| View previous topic :: View next topic |
| Author |
Message |
jafar n00b

Joined: 22 Sep 2009 Posts: 2
|
Posted: Tue Sep 22, 2009 8:50 pm Post subject: Applications menu |
|
|
Hi
I installed gnome 2.26 (emerge gnome) and it works fine but the "Applications" menu is totally empty. I don't see Office, Games, Internet, etc.
alacarte doesn't seem to run correctly. I get this message when I run alacarte in terminal :
| Code: |
$ alacarte
Traceback (most recent call last):
File "/usr/bin/alacarte", line 36, in <module>
main()
File "/usr/bin/alacarte", line 32, in main
app = MainWindow(datadir, version, sys.argv)
File "/usr/lib64/python2.6/site-packages/Alacarte/MainWindow.py", line 48, in __init__
self.editor = MenuEditor()
File "/usr/lib64/python2.6/site-packages/Alacarte/MenuEditor.py", line 36, in __init__
self.__loadMenus()
File "/usr/lib64/python2.6/site-packages/Alacarte/MenuEditor.py", line 42, in __loadMenus
self.applications.path = os.path.join(util.getUserMenuPath(), self.applications.tree.get_menu_file())
File "/usr/lib64/python2.6/posixpath.py", line 65, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
|
Any ideas ??
Thanks |
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Sep 22, 2009 9:04 pm Post subject: |
|
|
what does eselect python list return?
also please post your emerge --info |
|
| Back to top |
|
 |
jafar n00b

Joined: 22 Sep 2009 Posts: 2
|
Posted: Thu Sep 24, 2009 11:41 am Post subject: |
|
|
| Code: | # eselect python list
Available python interpreters:
[1] python2.6 *
[2] python3.1
|
| Code: | # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.10.1-r0, 2.6.31-gentoo-jafar-7 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-jafar-7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 24 Sep 2009 10:15:02 +0000
app-shells/bash: 4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python: 2.6.2-r2, 3.1.1-r1
dev-util/cmake: 2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.4.3-r3
sys-apps/sandbox: 2.1
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.10.2, 1.11
sys-devel/binutils: 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org/ http://mirror.ovh.net/gentoo/distfiles/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 artworkextra autoipd avahi bash-completion berkdb bluetooth bzip2 cdr cli consolekit cracklib crypt cups dbus dhclient dhcp dhcpcd dri dvd dvdr ffmpeg flac fortran fuse gdbm gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg jpeg2k lame laptop mmx modules mp3 mpeg msn mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python readline reflection sdl session sound spl sse sse2 sse3 ssl svg sysfs tcpd tiff unicode vorbis webkit xorg xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
|
|
| Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Sep 24, 2009 11:50 am Post subject: |
|
|
Maybe you just need to run python-updater or revdep-rebuild- not sure. That's the first thing I would try in these cases.  |
|
| Back to top |
|
 |
Rexilion l33t


Joined: 17 Mar 2009 Posts: 974
|
Posted: Thu Sep 24, 2009 2:13 pm Post subject: Re: Applications menu |
|
|
| jafar wrote: | Hi
I installed gnome 2.26 (emerge gnome) and it works fine but the "Applications" menu is totally empty. I don't see Office, Games, Internet, etc.
Any ideas ??
Thanks |
As for your menu problem, try emerging gnome menus like this (remember to logout (reboot is better!!) after each try!):
USE=python emerge -av gnome-menus
Or if that does not work:
USE=-python emerge -av gnome-menus |
|
| Back to top |
|
 |
einbisschen n00b

Joined: 04 Jun 2009 Posts: 20 Location: somewhere in a house
|
Posted: Sun Nov 01, 2009 8:55 am Post subject: |
|
|
I have had the same problem.
Check whether the link /etc/xdg/menus/applications.menu is existent and points on gnome-applications.menu in the same directory. |
|
| Back to top |
|
 |
Rede n00b


Joined: 03 Jun 2007 Posts: 67
|
Posted: Sun Nov 01, 2009 12:27 pm Post subject: |
|
|
I had the same problem and einbisschen's answer fixed mine.
Just make sure applications.menu is linked to gnome-applications.menu and then re-start X |
|
| Back to top |
|
 |
keet Guru

Joined: 09 Sep 2008 Posts: 322
|
Posted: Tue Nov 10, 2009 1:45 am Post subject: |
|
|
| Code: | | ln -s gnome-applications.menu applications.menu | worked for me.
I still can't emerge alacarte or edit my menus, but at least I have my applications menu. _________________ My Gentoo computers:
Home-built i7 2600K / 8GB RAM || Dell T6400/4GB RAM
Panasonic Toughbook CF-51 T2300/4GB RAM || Fujitsu Lifebook P4/1.6Ghz, 512MB RAM |
|
| Back to top |
|
 |
d2_racing Moderator


Joined: 25 Apr 2005 Posts: 12867 Location: Ste-Foy,Canada
|
Posted: Tue Nov 10, 2009 12:50 pm Post subject: |
|
|
My friend mrpouet from the Gentoo Gnome team knows that problem now.
So, we have to wait and see  _________________ Sysadmin of Funtoo-Québec.org
Wiki
Signature
IRC on Freenode : #funtoo-quebec |
|
| Back to top |
|
 |
Anon-E-moose Veteran


Joined: 23 May 2008 Posts: 1219 Location: Dallas area
|
Posted: Tue Nov 10, 2009 1:19 pm Post subject: |
|
|
With the advent of "XDG_MENU_PREFIX=gnome-" there have been problems.
in ~/.config/menus there needs to be a
gnome-applications.menu
and a gnome-applications-merged directory.
inside gnome-applications.menu it points to "/etc/xdg/menus/gnome-applications.menu"
which also needs to exist.
---
One can link ~/.config/menus/applications.menu to ~/.config/menus/gnome-applications.menu
but the old applications menu points to "/etc/xdg/menus/applications.menu" instead of the one above.
---
So things need to be made consistent to have menus and appications be proper (the old way) _________________ MSI NS750, Phenom II X6 - X64-multilib, glibc-2.12.2, 2.6.38.6-zen
xorg-server-1.10.6 - lxde - nvidia-295.49
wine-1.5.4, oss-4.2.2005
gcc-4.5.3-r2 CFLAGS="-march=native -O2 -floop-interchange -floop-strip-mine -floop-block -pipe" |
|
| Back to top |
|
 |
mrpouet Developer


Joined: 29 Jul 2008 Posts: 87 Location: Bordeaux, France
|
Posted: Thu Nov 12, 2009 1:20 pm Post subject: |
|
|
| d2_racing wrote: | My friend mrpouet from the Gentoo Gnome team knows that problem now.
So, we have to wait and see  |
https://bugs.gentoo.org/show_bug.cgi?id=291279
The strange thing is gnome-menus-2.26 already handles and uses XDG_MENU_PREFIX env var (check the code),
this var is designed to be able to change dynamically the name/place of applications.menu (mainly to avoid conflicts with other .menu files, like kde, xfce and so on)
So the fix is not to make a symlink or to patch the code in order to include "gnome-applications.menu" statically, because as I said the purpose of XDM_MENU_PREFIX is to handle this feature dynamically.
Then gnome-panel and alacarte should use gnome-menu (contains a lib)... so I'm pretty sure this is a bug in this lib... |
|
| Back to top |
|
 |
netfab Veteran


Joined: 03 Mar 2005 Posts: 1563 Location: 127.0.0.1
|
Posted: Fri Nov 13, 2009 11:14 am Post subject: |
|
|
| mrpouet wrote: |
Then gnome-panel and alacarte should use gnome-menu (contains a lib)... so I'm pretty sure this is a bug in this lib...
|
For gnome-panel, it does not : the following code is taken from gnome-panel-2.26.3 (gnome-panel/panel-menu-button.c)
| Code: |
static MenuPathRootItem root_items [] = {
{ APPLICATIONS_MENU, "applications", "applications.menu" },
{ SETTINGS_MENU, "settings", "settings.menu" }
};
static const char *
panel_menu_filename_to_scheme (const char *filename)
{
const char *retval;
int i;
retval = NULL;
if (!filename)
return retval;
for (i = 0; i < G_N_ELEMENTS (root_items); i++) {
if (root_items [i].filename &&
!strncmp (filename, root_items [i].filename,
strlen (root_items [i].filename))) {
retval = root_items [i].scheme;
break;
}
}
return retval;
}
gboolean
panel_menu_button_create (PanelToplevel *toplevel,
int position,
const char *filename,
const char *menu_path,
gboolean use_menu_path,
const char *tooltip)
{
[...]
scheme = panel_menu_filename_to_scheme (filename);
if (filename && !scheme) {
g_warning ("Failed to find menu scheme for %s\n", filename);
g_free (id);
return FALSE;
}
[...]
}
|
| Quote: |
** (gnome-panel:10887): WARNING **: Failed to find menu scheme for gnome-applications.menu
|
I'm not an expert in C, but I don't see how the strncmp function can found a match between gnome-applications.menu and applications.menu strings.
So :
- the panel_menu_filename_to_scheme function returns NULL
- the panel_menu_button_create function displays the warning and returns FALSE.
There's no reference to gnome-menu nor XDG_MENU_PREFIX env variable.
I don't see how this part of code can work when the file is not named applications.menu (without patching the code). |
|
| Back to top |
|
 |
d2_racing Moderator


Joined: 25 Apr 2005 Posts: 12867 Location: Ste-Foy,Canada
|
Posted: Fri Nov 13, 2009 1:22 pm Post subject: |
|
|
Nice one netfab _________________ Sysadmin of Funtoo-Québec.org
Wiki
Signature
IRC on Freenode : #funtoo-quebec |
|
| Back to top |
|
 |
jsubl2 n00b

Joined: 19 Jun 2002 Posts: 35
|
Posted: Sat Dec 12, 2009 2:10 pm Post subject: |
|
|
| this problem showed up for me and removing $HOME/.config/menus fixed the issue |
|
| Back to top |
|
 |
guyr Apprentice

Joined: 17 Aug 2004 Posts: 237
|
Posted: Mon Dec 14, 2009 3:00 am Post subject: |
|
|
I don't have a menus entry (file or directory) in ~/.config. The symlink fixed it for me. _________________ Guy Rouillier |
|
| Back to top |
|
 |
|