Last active
December 22, 2016 10:04
-
-
Save ryansmccoy/f85994d8d531eae080757c85d2a7b4bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
unset SESSION_MANAGER | |
unset DBUS_SESSION_BUS_ADDRESS | |
exec /etc/X11/xinit/xinitrc | |
gnome-session --session=gnome-classic & | |
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 | |
autocutsel -fork | |
xsetroot -solid grey | |
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & | |
lxterminal & /usr/bin/lxsession -s LXDE & | |
gnome-session –session=gnome-classic & x-window-manager & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment