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
Bisa dicoba dengan cara di alamat: https:/ /bugs.launchpad .net/ubuntu/ +source/ gnome-control- center/ +bug/146946
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 is-gnome `basename "$STARTUP" | cut -d\ -f1` es/x-session- manager` " = \
/usr/ bin/gnome- session \) ]; then $HOME/. gnomerc is-gnome
rm -f /tmp/session-
BASESTARTUP=
if [ "$BASESTARTUP" = gnome-session -o \
\( "$BASESTARTUP" = x-session-manager -a \
"`readlink /etc/alternativ
GNOMERC=
if [ -r "$GNOMERC" ]; then
. "$GNOMERC"
fi
# ADD FOLLOWING LINE
touch /tmp/session-
fi
Then change /etc/X11/ Xsession. d/99x11- common_ start completely, to the following text:
Code:
if [ -f /tmp/session- is-gnome ]; then dbus-launch $STARTUP
exec /usr/bin/
else
exec $STARTUP
fi