Hey all, I've been playing around with XPde for a while, it launches fine with startx with .xinitrc setup to launch it, but I'd like to add it to KDM. I found a tutorial for Mandrake, but there seems to be some differences with debian:

Mandrake instructions:

Edit your /etc/X11/Xsession: vi /etc/X11/Xsession

Between the lines

if [ -n "$DESKTOP" ]; then
case $DESKTOP in

and

failsafe)

insert the following lines:

XPde)
export LD_LIBRARY_PATH=/opt/xpde/bin
exec $SSH_AGENT /opt/xpde/bin/XPde full &
exec $SSH_AGENT /opt/xpde/bin/XPwm
;;

3. Edit your /usr/share/config/kdm/kdmrc: vi /usr/share/config/kdm/kdmrc

In the line beginning with SessionTypes= insert an entry XPde

That's it!
Now you can select XPde in KDM to start it.
The problem I have is that my /etc/X11/Xsession file dosent have those lines,
I've looked in every Xsession file I can find and a lot of other files that seem to be called from them, but nothing.

Anyone have any idea where the lines should be added?

Also I want to add XFCE4 to KDM, it's installed, and launches fine from GDM, but dosent show up in KDM and I'd prefer to keep using KDM.

Any help on either of these would be greatly appreciated

Thanks in advance.