summaryrefslogtreecommitdiffstats
path: root/sesman/startwm.sh
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-05-03 20:07:31 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-05-03 20:07:31 -0700
commit2086cc25e7af16a2d4f7ad8ff8007568ad8b7484 (patch)
tree740fc1e3cf82207c4e23cbccdf1203d83db4cc29 /sesman/startwm.sh
parente4b19abd1d6c3cd105cc334fa4b57f7cb0d1fc82 (diff)
downloadxrdp-proprietary-2086cc25e7af16a2d4f7ad8ff8007568ad8b7484.tar.gz
xrdp-proprietary-2086cc25e7af16a2d4f7ad8ff8007568ad8b7484.zip
startwm.sh should look for Xsession
Diffstat (limited to 'sesman/startwm.sh')
-rwxr-xr-xsesman/startwm.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/sesman/startwm.sh b/sesman/startwm.sh
index d38b6d14..0724bb76 100755
--- a/sesman/startwm.sh
+++ b/sesman/startwm.sh
@@ -4,3 +4,23 @@ if [ -r /etc/default/locale ]; then
export LANG LANGUAGE
fi
. /etc/X11/Xsession
+
+# debian
+if [ -r /etc/X11/Xsession ]; then
+ . /etc/X11/Xsession
+ exit 0
+fi
+
+# el
+if [ -r /etc/X11/xinit/Xsession ]; then
+ . /etc/X11/xinit/Xsession
+ exit 0
+fi
+
+# suse
+if [ -r /etc/X11/xdm/Xsession ]; then
+ . /etc/X11/xdm/Xsession
+ exit 0
+fi
+
+xterm