You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# change the order in line below to run to run whatever window manager you
|
|
|
|
# want, default to kde
|
|
|
|
|
|
|
|
SESSIONS="startkde gnome-session startxfce4 xterm"
|
|
|
|
|
|
|
|
# change PATH to be what your environment needs usually what is in
|
|
|
|
# /etc/environment
|
|
|
|
#PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
|
|
|
|
#export PATH=$PATH
|
|
|
|
|
|
|
|
# for PATH and LANG from /etc/environment
|
|
|
|
# pam will auto process the environment file if /etc/pam.d/xrdp-sesman
|
|
|
|
# includes
|
|
|
|
# auth required pam_env.so readenv=1
|
|
|
|
#. /etc/environment
|
|
|
|
#export PATH=$PATH
|
|
|
|
#export LANG=$LANG
|
|
|
|
|
|
|
|
# for bash profile
|
|
|
|
#. ~/.bash_profile
|
|
|
|
|
|
|
|
#. /etc/profile
|
|
|
|
|
|
|
|
for WindowManager in $SESSIONS
|
|
|
|
do
|
|
|
|
which $WindowManager
|
|
|
|
if test $? -eq 0
|
|
|
|
then
|
|
|
|
echo "Starting $WindowManager"
|
|
|
|
$WindowManager
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 1
|