Guest User

startwm.sh

a guest
Jun 17th, 2021
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. # xrdp X session start script (c) 2015, 2017 mirabilos
  3. # published under The MirOS Licence
  4.  
  5. #Improved Look n Feel Method
  6. cat <<EOF > ~/.xsessionrc
  7. export GNOME_SHELL_SESSION_MODE=ubuntu
  8. export XDG_CURRENT_DESKTOP=ubuntu:GNOME
  9. export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
  10. EOF
  11.  
  12. unset DBUS_SESSION_BUS_ADDRESS
  13. unset XDG_RUNTIME_DIR
  14. . $HOME/.profile
  15.  
  16.  
  17. if test -r /etc/profile; then
  18. . /etc/profile
  19. fi
  20.  
  21. if test -r /etc/default/locale; then
  22. . /etc/default/locale
  23. test -z "${LANG+x}" || export LANG
  24. test -z "${LANGUAGE+x}" || export LANGUAGE
  25. test -z "${LC_ADDRESS+x}" || export LC_ADDRESS
  26. test -z "${LC_ALL+x}" || export LC_ALL
  27. test -z "${LC_COLLATE+x}" || export LC_COLLATE
  28. test -z "${LC_CTYPE+x}" || export LC_CTYPE
  29. test -z "${LC_IDENTIFICATION+x}" || export LC_IDENTIFICATION
  30. test -z "${LC_MEASUREMENT+x}" || export LC_MEASUREMENT
  31. test -z "${LC_MESSAGES+x}" || export LC_MESSAGES
  32. test -z "${LC_MONETARY+x}" || export LC_MONETARY
  33. test -z "${LC_NAME+x}" || export LC_NAME
  34. test -z "${LC_NUMERIC+x}" || export LC_NUMERIC
  35. test -z "${LC_PAPER+x}" || export LC_PAPER
  36. test -z "${LC_TELEPHONE+x}" || export LC_TELEPHONE
  37. test -z "${LC_TIME+x}" || export LC_TIME
  38. test -z "${LOCPATH+x}" || export LOCPATH
  39. fi
  40.  
  41. if test -r /etc/profile; then
  42. . /etc/profile
  43. fi
  44.  
RAW Paste Data