Fix wrong tty in zprofile for wayland

This commit is contained in:
Pavle Portic 2024-02-06 09:36:58 +01:00
parent b5bf0277d3
commit 4736dc9248
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
1 changed files with 1 additions and 1 deletions

View File

@ -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