From: Maximilian Friedersdorff Date: Tue, 22 Dec 2020 14:56:46 +0000 (+0000) Subject: Set QT_QPA_PLATOFORM conditionally X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=f879c7711f2651135b87d059ce59604a80d61696;p=max%2Fsaltfiles.git Set QT_QPA_PLATOFORM conditionally --- diff --git a/states/zsh/files/zshenv b/states/zsh/files/zshenv index eabcb4f..dd69c65 100644 --- a/states/zsh/files/zshenv +++ b/states/zsh/files/zshenv @@ -1,7 +1,9 @@ typeset -U path path=(~/.local/bin ~/.cargo/bin $path[@]) -export QT_QPA_PLATFORM=wayland-egl +if [[ $XDG_SESSION_TYPE == "wayland" ]]; then + export QT_QPA_PLATFORM=wayland-egl +fi # make less more friendly for non-text input files, see lesspipe(1) if [ -x /usr/bin/lesspipe ]; then