fish: conf.d/setup: Add QT environment variables for Wayland

See https://wiki.archlinux.org/title/Wayland#Qt.

For some reason, even after setting this in systemd environment
variables, QT_QPA_PLATFORM does not get set.
This commit is contained in:
Sanchayan Maity 2022-01-26 20:55:39 +05:30
parent e8ca57fa0e
commit ca802a885f
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@ function __fish_setup_on_tty_login --description "Set up environment on tty logi
set -qx XDG_CACHE_HOME; or set -Ux XDG_CACHE_HOME $HOME/.cache
set -qx XDG_DATA_HOME; or set -Ux XDG_DATA_HOME $HOME/.local/share
set -qx XDG_STATE_HOME; or set -Ux XDG_STATE_HOME $HOME/.local/state
set -qx QT_QPA_PLATFORM; or set -Ux QT_QPA_PLATFORM wayland
set -qx QT_QPA_PLATFORMTHEME; or set -Ux QT_QPA_PLATFORMTHEME qt5ct
for extra_path in ~/.{local,nix-profile,cargo,cabal,ghcup}/bin
if test -d "$extra_path"