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