Comment 52 for bug 146946

Revision history for this message
Ric Flomag (ricflomag) wrote : Re: [gutsy] Gnome settings daemon randomly does not work

The ubuntu forums thread mentionned by Artemis3 on comment 15 contains a fix given by Joshua Swink that seems to work for most of the people (it does for me):

http://ubuntuforums.org/showpost.php?p=3776732&postcount=15
*******************
This seems to be related to this gnome-session bug:
http://bugzilla.gnome.org/show_bug.cgi?id=395488

Here is a workaround. Two files are modified.

Change /etc/X11/Xsession.d/55gnome-session_gnomerc, adding two lines (identified below by comments):

Code:

# ADD FOLLOWING LINE
rm -f /tmp/session-is-gnome
BASESTARTUP=`basename "$STARTUP" | cut -d\ -f1`
if [ "$BASESTARTUP" = gnome-session -o \
        \( "$BASESTARTUP" = x-session-manager -a \
        "`readlink /etc/alternatives/x-session-manager`" = \
                /usr/bin/gnome-session \) ]; then
  GNOMERC=$HOME/.gnomerc
  if [ -r "$GNOMERC" ]; then
    . "$GNOMERC"
  fi
  # ADD FOLLOWING LINE
  touch /tmp/session-is-gnome
fi

Then change /etc/X11/Xsession.d/99x11-common_start completely, to the following text:

Code:

if [ -f /tmp/session-is-gnome ]; then
  exec /usr/bin/dbus-launch $STARTUP
else
  exec $STARTUP
fi