From 4736dc924867ba49648172f4b5fb511fb70025ca Mon Sep 17 00:00:00 2001 From: TheEdgeOfRage Date: Tue, 6 Feb 2024 09:36:58 +0100 Subject: [PATCH] Fix wrong tty in zprofile for wayland --- dot_zprofile.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_zprofile.tmpl b/dot_zprofile.tmpl index ec1e10e..7e9c35f 100644 --- a/dot_zprofile.tmpl +++ b/dot_zprofile.tmpl @@ -22,7 +22,7 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh" {{ range $_, $env := .zshrc.env_vars }}export {{ $env.name }}="{{ $env.value }}" {{ end }} # Wayland env vars -if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]]; then +if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then export MOZ_ENABLE_WAYLAND="1" export XDG_SESSION_TYPE=wayland export QT_QPA_PLATFORM=wayland-egl