From 5d92bca1cf152e0247ab2c296911cd705f24d33c Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Sat, 12 Feb 2022 12:15:17 +0100 Subject: [PATCH] Update startx conditions in shell profile to reflect wiki --- dotfiles/shell/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/shell/profile b/dotfiles/shell/profile index e498be4..a632c79 100644 --- a/dotfiles/shell/profile +++ b/dotfiles/shell/profile @@ -6,6 +6,6 @@ export SUDO_EDITOR="$EDITOR" export TERMINAL="terminator" export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" -if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then +if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then exec startx fi