diff -ruNp a/xrdp-HEAD-a9cfc23/sesman/startwm.sh b/xrdp-HEAD-a9cfc23/sesman/startwm.sh --- a/xrdp-HEAD-a9cfc23/sesman/startwm.sh 2010-11-04 13:52:27.000000000 -0200 +++ b/xrdp-HEAD-a9cfc23/sesman/startwm.sh 2010-11-18 01:08:01.275689981 -0200 @@ -1,5 +1,13 @@ #!/bin/sh +# if xinitrc exists use it instead, it should load user prefferences +# including desktop environment specified in /etc/sysconfig/desktop +if [ -f /etc/X11/xinit/xinitrc ] +then + . /etc/X11/xinit/xinitrc + exit 0 +fi + # change the order in line below to run to run whatever window manager you # want, default to kde