# # ~/.bash_profile # [[ -f ~/.bashrc ]] && . ~/.bashrc export DESKTOP_SESSION=LXDE ~/.automated_script.sh if [[ -n $DESKTOP_SESSION ]] && [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx fi