From 545b042a65598eb35cacafe6c3613750274fe611 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Wed, 4 Aug 2021 20:10:57 -0500 Subject: check for root --- zsh/zprofile.base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zprofile.base b/zsh/zprofile.base index 3a49327..88414a9 100644 --- a/zsh/zprofile.base +++ b/zsh/zprofile.base @@ -24,4 +24,4 @@ export QT_QPA_PLATFORMTHEME="qt5ct" export LESSHISTFILE="-" # Autostart x11 after login -if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then startx ~/.config/x11/xinitrc; fi +if [[ $USER != "root" ] && [ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then startx ~/.config/x11/xinitrc; fi -- cgit v1.2.3