Skip to content

Instantly share code, notes, and snippets.

@CorcovadoMing
Created March 8, 2016 13:49
Show Gist options
  • Save CorcovadoMing/18b2ddd730116845798f to your computer and use it in GitHub Desktop.
Save CorcovadoMing/18b2ddd730116845798f to your computer and use it in GitHub Desktop.
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment