xrdp/sesman/startwm.sh

26 lines
351 B
Bash
Raw Normal View History

2010-07-26 09:52:12 +08:00
#!/bin/sh
2013-03-20 23:57:21 +08:00
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
fi
2013-05-04 11:07:31 +08:00
# 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