Public bug reported:

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/Xsession.d/` ; do
        if [ -r "/etc/X11/Xsession.d/$i" ] && expr "$i" : '^[[:alnum:]_-]\+$' > 
/dev/null; then
            . "/etc/X11/Xsession.d/$i"
        fi
    done
fi


so that the files in /etc/X11/Xsession.d are read.

However
1) The following variables are not set:
SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources

SYSSESSIONDIR=/etc/X11/Xsession.d
USERXSESSION=$HOME/.xsession
USERXSESSIONRC=$HOME/.xsessionrc
ALTUSERXSESSION=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors
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="$HOME/.xsession"
  else
    echo "$0: Cannot find ~/.xsession will try the default session"
    command="default"
  fi
fi
...

But this will never be called, because the sourced file
Numenor /etc/gdm $ cat /etc/X11/Xsession.d/99x11-common_start
# $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/Xsession.d, but this should be commented, I have the impression the 
maintenair expect the rest of the script to be read.


(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
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: gdm
Uname: Linux 2.6.31-14-generic i686

** Affects: gdm (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
/etc/gdm/Xsession does not call /etc/X11/Xsession
https://bugs.launchpad.net/bugs/465349
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to