4736dc924867ba49648172f4b5fb511fb70025ca

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Fix wrong tty in zprofile for wayland

Diff

 1diff --git a/dot_zprofile.tmpl b/dot_zprofile.tmpl
 2index ec1e10e32ceaa76cb1f34fcaff73ae90e7ac7c8b..7e9c35f6b36b3d829da22a9d5bea9158dc012824 100644
 3--- a/dot_zprofile.tmpl
 4+++ b/dot_zprofile.tmpl
 5@@ -22,7 +22,7 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
 6 {{ range $_, $env := .zshrc.env_vars }}export {{ $env.name }}="{{ $env.value }}"
 7 {{ end }}
 8 # Wayland env vars
 9-if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]]; then
10+if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
11     export MOZ_ENABLE_WAYLAND="1"
12     export XDG_SESSION_TYPE=wayland
13     export QT_QPA_PLATFORM=wayland-egl