Advertisement
v4567

startwm.sh

Apr 13th, 2012
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # change the order in line below to run to run whatever window manager you
  4. # want, default to kde
  5.  
  6. SESSIONS="startx"
  7.  
  8. # change PATH to be what your environment needs usually what is in
  9. # /etc/environment
  10. #PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
  11. #export PATH=$PATH
  12.  
  13. # for PATH and LANG from /etc/environment
  14. # pam will auto process the environment file if /etc/pam.d/xrdp-sesman
  15. # includes
  16. # auth required pam_env.so readenv=1
  17. #. /etc/environment
  18. #export PATH=$PATH
  19. #export LANG=$LANG
  20.  
  21. # for bash profile
  22. #. ~/.bash_profile
  23.  
  24. #. /etc/profile
  25.  
  26. for WindowManager in $SESSIONS
  27. do
  28. which $WindowManager
  29. if test $? -eq 0
  30. then
  31. echo "Starting $WindowManager"
  32. $WindowManager
  33. exit 0
  34. fi
  35. done
  36.  
  37. exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement