From 1950c1ab701bd8897c7dc59db1a63798def434ba Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Mon, 24 Oct 2022 16:56:38 +0800 Subject: [PATCH] bash: do gui exports only on linux fixes windows app with qt --- .bash_profile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.bash_profile b/.bash_profile index 09c2460..4a7a410 100644 --- a/.bash_profile +++ b/.bash_profile @@ -54,13 +54,16 @@ else fi export DVTM_PAGER=less export ABDUCO_CMD="dvtm -M" -export GDK_BACKEND=wayland -export QT_QPA_PLATFORM=wayland-egl -export SDL_VIDEODRIVER=wayland -export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 -export GTK_IM_MODULE=wayland -export QT_IM_MODULE=fcitx -export GTK_THEME=Arc-Darker + +if [ "${OSTYPE%%-*}" = "linux" ]; then + export GDK_BACKEND=wayland + export QT_QPA_PLATFORM=wayland-egl + export SDL_VIDEODRIVER=wayland + export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 + export GTK_IM_MODULE=wayland + export QT_IM_MODULE=fcitx + export GTK_THEME=Arc-Darker +fi if [ ! -d "$ANDROID_HOME" ]; then if [ ! -d "$ANDROID_SDK_ROOT" ] && [ -d ~/android-sdk ]; then -- 2.45.2