summaryrefslogtreecommitdiff
path: root/zsh/zprofile.base
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zprofile.base')
-rw-r--r--zsh/zprofile.base2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/zprofile.base b/zsh/zprofile.base
index 5250245..86f90b0 100644
--- a/zsh/zprofile.base
+++ b/zsh/zprofile.base
@@ -36,4 +36,4 @@ export LESSHISTFILE="-"
export QT_QPA_PLATFORMTHEME="qt5ct"
# Autostart X after login
-if [[ -z $DISPLAY ]] && [[ "$USER" != "root" ]] && ( [[ $(tty) = /dev/tty1 ]] || [[ $(tty) = /dev/ttyC0 ]] ); then startx $XDG_CONFIG_HOME/x11/xinitrc; fi
+if [[ -z $DISPLAY ]] && [[ "$(id -u)" != 0 ]] && ( [[ $(tty) = /dev/tty1 ]] || [[ $(tty) = /dev/ttyC0 ]] ); then startx $XDG_CONFIG_HOME/x11/xinitrc; fi