/etc/gdm/Xsession does not call /etc/X11/Xsession
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: gdm
On /etc/gdm/Xsession i see the following:
if [ -d /etc/X11/Xsession.d ]; then
for i in `ls /etc/X11/
if [ -r "/etc/X11/
. "/etc/X11/
fi
done
fi
so that the files in /etc/X11/Xsession.d are read.
However
1) The following variables are not set:
SYSRESOURCES=
USRRESOURCES=
SYSSESSIONDIR=
USERXSESSION=
USERXSESSIONRC=
ALTUSERXSESSION
ERRFILE=
but they are used by the scripts in /etc/X11/Xsession.d
they are set by /etc/X11/Xsession, so a workaround would be to source this file rather than the script in /etc/X11/Xsession.d
2) the script in /etc/gdm continues with
if [ "x$command" = "xcustom" ] ; then
if [ -x "$HOME/.xsession" ]; then
command=
else
echo "$0: Cannot find ~/.xsession will try the default session"
command=
fi
fi
...
But this will never be called, because the sourced file
Numenor /etc/gdm $ cat /etc/X11/
# $Id: 99x11-common_start 305 2005-07-03 18:51:43Z dnusinow $
# This file is sourced by Xsession(5), not executed.
exec $STARTUP
will exec $STARTUP so that the rest of the gdm script after sourcing the scripts in /etc/X11/Xsession.d
are not read. I understand this as a fallback in case nothing is launched by /etc/X11/
(This is a regression compared to jaunty, see bug #229199)
ProblemType: Bug
Architecture: i386
Date: Fri Oct 30 19:38:56 2009
DistroRelease: Ubuntu 9.10
Package: gdm 2.28.1-0ubuntu1
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/zsh
ProcVersionSign
SourcePackage: gdm
Uname: Linux 2.6.31-14-generic i686
Changed in gdm (Ubuntu): | |
status: | New → Confirmed |
Changed in gdm (Ubuntu): | |
importance: | Undecided → Low |
I just wondered why my ~/.xsession did not execute any more after upgrade to 9.10, here is the answer.
Are there any workaround for this bug?