]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Set QT_QPA_PLATOFORM conditionally
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 22 Dec 2020 14:56:46 +0000 (14:56 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 22 Dec 2020 14:56:46 +0000 (14:56 +0000)
states/zsh/files/zshenv

index eabcb4f7022d6b88fc6009eb11e76a500ea1be20..dd69c652b2be0bc1e5ce8f9782411ed16fc51932 100644 (file)
@@ -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