xstartup 766 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. xhost +
  3. # SESSION_MANAGER is inherited from the environment and some window
  4. # managers require that it be cleared.
  5. # http://osdir.com/ml/gnome.ximian.snapshots/2002-09/msg00034.html
  6. # For example, Xfce4 version 4.6.1 and Deb5-64 require the unsetenv.
  7. # Goolging indicates that others also require the unsetenv.
  8. unsetenv SESSION_MANAGER
  9. # Startup scripts, e.g. /etc/xdg/xfce4/xinitrc require
  10. # http://en.wikipedia.org/wiki/D-Bus to run correctly.
  11. unsetenv DBUS_SESSION_BUS_ADDRESS
  12. # Set VNCSESSION to tell /etc/xdg/xfce4/xinitrc to not run xscreensaver
  13. # http://vstone.eu/2009/04/disabling-xscreensaver-when-using-xfce-vnc/
  14. setenv VNCSESSION yes
  15. startxfce4 &
  16. # Make sure that copy / paste are correctly forwarded to the VNC viewer
  17. vncconfig -nowin &