1 2 3 4 5 6 7
if [[ $(uname) == "Linux" ]]; then if [[ -z $DISPLAY ]] && (( $EUID != 0 )) { [[ ${TTY/tty} != $TTY ]] && (( ${TTY:8:1} <= 3 )) && startx 1>/tmp/xsession-errors 2>&1 & } fi