From 0dda674c9cd3d6bae9c53fdac409a6cbbc45bd45 Mon Sep 17 00:00:00 2001 From: Htylol Date: Mon, 21 Oct 2024 21:27:24 +0500 Subject: [PATCH] Added NOUVEAU_USE_ZINK and spellcheck --- data_from_portwine/scripts/clear_db.sh | 2 +- data_from_portwine/scripts/functions_helper | 3 +++ data_from_portwine/scripts/setup.sh | 2 +- data_from_portwine/scripts/start.sh | 13 +++++-------- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/data_from_portwine/scripts/clear_db.sh b/data_from_portwine/scripts/clear_db.sh index 74e7ab46..8e204378 100755 --- a/data_from_portwine/scripts/clear_db.sh +++ b/data_from_portwine/scripts/clear_db.sh @@ -17,7 +17,7 @@ if [[ -n "$DUPLICATE" ]] ; then exit 1 fi -for ppdb in $SELF_PATH/portwine_db/* ; do +for ppdb in "$SELF_PATH/portwine_db/"* ; do echo "$ppdb" sed -i '/##export/d' "$ppdb" diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 20b8b675..e218f775 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2929,6 +2929,9 @@ start_portwine () { then export LIBGL_KOPPER_DRI2="1" fi + if [[ -d /sys/bus/pci/drivers/nouveau ]] ; then + export NOUVEAU_USE_ZINK="1" + fi ;; 5) # LEGACY DXVK diff --git a/data_from_portwine/scripts/setup.sh b/data_from_portwine/scripts/setup.sh index 28c8e9a8..63627fd4 100755 --- a/data_from_portwine/scripts/setup.sh +++ b/data_from_portwine/scripts/setup.sh @@ -2,7 +2,7 @@ # Author: linux-gaming.ru # shellcheck disable=SC2317 export INSTALLING_PORT=1 -# shellcheck source=./start.sh +# shellcheck source=/dev/null source "$(dirname "$(readlink -f "$0")")/start.sh" if check_flatpak diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 819d1959..9617fef2 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -246,14 +246,11 @@ if [[ "${INSTALLING_PORT}" == 1 ]] ; then fi # choose gui start -case "$PW_GUI_START" in - PANED|NOTEBOOK) : ;; - *) - sed -i '/export PW_GUI_START=/d' "$USER_CONF" - echo 'export PW_GUI_START="NOTEBOOK"' >> "$USER_CONF" - export PW_GUI_START="NOTEBOOK" - ;; -esac +if [[ ! $PW_GUI_START =~ (PANED|NOTEBOOK) ]] ; then + sed -i '/export PW_GUI_START=/d' "$USER_CONF" + echo 'export PW_GUI_START="NOTEBOOK"' >> "$USER_CONF" + export PW_GUI_START="NOTEBOOK" +fi if check_flatpak ; then if check_gamescope_session