From f879c7711f2651135b87d059ce59604a80d61696 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 22 Dec 2020 14:56:46 +0000 Subject: [PATCH] Set QT_QPA_PLATOFORM conditionally --- states/zsh/files/zshenv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.46.2