--- lxdm-0.5.3/data/Xsession.orig 2016-11-03 14:34:25.513629481 +0100 +++ lxdm-0.5.3/data/Xsession 2016-11-03 14:35:13.952625907 +0100 @@ -5,29 +5,18 @@ if [ $# -eq 1 -a -n "$1" ]; then LXSESSION=$1 else -# default session - LXSESSION=/usr/bin/startlxde +# Default session +# Let it be the one found in /etc/lxdm/lxdm.conf, that will be set by +# /usr/bin/xwmconfig if run by root in sint. +# Didier Spaier + LXSESSION=$(sed -n /^session=/s/^session=//p /etc/lxdm/lxdm.conf) fi +[ -f /etc/profile ] && . /etc/profile +[ -f ~/.profile ] && . ~/.profile [ -f /etc/xprofile ] && . /etc/xprofile [ -f ~/.xprofile ] && . ~/.xprofile -if [ -f /etc/X11/xinit/xinitrc-common ]; then -# fedora - . /etc/X11/xinit/xinitrc-common - exec -l bash -c "$LXSESSION" -elif [ -x /etc/X11/xinit/Xsession ]; then -# fedora - exec /etc/X11/xinit/Xsession "$LXSESSION" -elif [ -x /etc/X11/Xsession ]; then -# mandriva, debian, ubuntu - exec /etc/X11/Xsession "$LXSESSION" -elif [ -x /etc/X11/xinit/xinitrc ]; then -#suse - export WINDOWMANAGER=$LXSESSION - exec -l bash -c /etc/X11/xinit/xinitrc -else -# unknown, user should custom /etc/lxdm/xinitrc self if [ -x /etc/lxdm/xinitrc ]; then . /etc/lxdm/xinitrc "$LXSESSION" fi