/etc/X11/Sessions/Gnome has several items that are already done in /etc/X11/xinit/xinitrc. For example, xinitrc already handles loading of X resources and keyboard maps, so the lines userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap userxkbmap=$HOME/.Xkbmap sysresources=/etc/X11/Xresources sysmodmap=/etc/X11/Xmodmap sysxkbmap=/etc/X11/Xkbmap rh6sysresources=/etc/X11/xinit/Xresources rh6sysmodmap=/etc/X11/xinit/Xmodmap # merge in defaults if [ -f "$rh6sysresources" ]; then xrdb -merge "$rh6sysresources" fi if [ -f "$sysresources" ]; then xrdb -merge "$sysresources" fi if [ -f "$userresources" ]; then xrdb -merge "$userresources" fi # merge in keymaps if [ -f "$sysxkbmap" ]; then setxkbmap `cat "$sysxkbmap"` XKB_IN_USE=yes fi if [ -f "$userxkbmap" ]; then setxkbmap `cat "$userxkbmap"` XKB_IN_USE=yes fi # # Eeek, this seems like too much magic here # if [ -z "$XKB_IN_USE" ] && [ ! -L /etc/X11/X ]; then if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config` if [ -n "$xkbsymbols" ]; then setxkbmap -symbols "$xkbsymbols" XKB_IN_USE=yes fi fi fi are unneeded. Some of the above stuff appears specific to Red Hat, such as rh6sysresources, and shouldn't be there at all. Other bits are unnecessary for other reasons, such as # run all system xinitrc shell scripts. if [ -d /etc/X11/xinit/xinitrc.d ]; then for i in /etc/X11/xinit/xinitrc.d/* ; do if [ -x "$i" ]; then . "$i" fi done fi If the above belongs in Gentoo at all, it belongs in /etc/X11/xinit/xinitrc, no in something GNOME-specific. In fact, I've customized my /etc/X11/xinit/xinitrc to include the "for" loop above, so those lines not only are unnecessary, but in my case, actually get in the way by starting up my startup stuff twice. (BTW, one of the things I startup is the daemon xwrits, so doing the startup twice would leave me with one extra instance of xwrits running in the background. Moral of the story: don't assume rerunning the startup does no harm.) I suggest keeping /etc/X11/Sessions/Gnome simple. It needs only three lines: #!/bin/bash export GDK_USE_XFT=1 exec gnome-session The rest of the startup can be, and should be, put in non-GNOME-specific files.
azarah, your comments on this please? We should make the gnome script source ~/.gnomerc so the user can specify WINDOW_MANAGER and other things there...
Sure. This is the default on that comes with GDM, and that most, if not all the other distro's distribute. And why is it unneeded ? The scripts of XDM does pretty much the same thing.
closing this since it doesn't seem to go anywhere. reopen and reassign if you want it.