[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kdm 3.4.0-0pre2 and zsh : unable to log in

On March 24, 2005 05:56, Nicolas Raspail wrote:
> yesterday I've upgraded my debian Sid to kde 3.4.0 with the packages
> from alioth. I've purged the kdm package and install the newer but I can
> log in anymore. In my .xsession-errors I've the following error :
> Xsession: X session started for fireball at Thu Mar 24 11:39:44 CET 2005
> /etc/X11/Xsession:.:104: no such file or
> directory: /etc/X11/Xsession.d/20xfree86-common_process-args
> \n/etc/X11/Xsession.d/30xfree86-common_xresources
> \n/etc/X11/Xsession.d/50xfree86-common_determine-startup
> \n/etc/X11/Xsession.d/90xfree86-common_ssh-agent
> \n/etc/X11/Xsession.d/92xprint-xpserverlist
> \n/etc/X11/Xsession.d/99xfree86-common_start
> So, I've edited the file /etc/kde3/kdm/Xsession and comment the
> following lines
> [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
> emulate -R zsh
> and now I can log in without problems. If I removed kdm, startx works
> fine.

The problem seems to be that I re-added the sourcing of shell config files 
in KDE 3.4. On startup, kdm uses zsh to source /etc/X11/Xsession (after 
sourcing its own config files), but fails because zsh handles expansion in 
an unusual way (the expansion, in this case, of the files 
in /etc/X11/Xsession.d). To get it to work, we need to set:

setopt shwordsplit

I've attached an alternate Xsession script that includes this change. Could 
you test it?

Christopher Martin

Attachment: Xsession
Description: application/shellscript

Reply to: