diff --git a/dot_bash_profile.tmpl b/dot_bash_profile.tmpl index 78e18ee..2e686c6 100644 --- a/dot_bash_profile.tmpl +++ b/dot_bash_profile.tmpl @@ -75,4 +75,4 @@ export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority" [[ -f ~/.bashrc ]] && . ~/.bashrc # start river -[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec dbus-run-session river +[[ -z $DISPLAY && $(tty) = "/dev/tty1" ]] && exec dbus-run-session river