From 7c967be6d5dd5d7c660112beaf95b7c197b76f41 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Wed, 20 May 2026 20:48:27 +0500 Subject: [PATCH] fix: enable portable gamemode auto preload Signed-off-by: Boris Yumankulov --- build-aux/share/portproton/scripts/functions_helper | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build-aux/share/portproton/scripts/functions_helper b/build-aux/share/portproton/scripts/functions_helper index ce46489d..43c9195f 100755 --- a/build-aux/share/portproton/scripts/functions_helper +++ b/build-aux/share/portproton/scripts/functions_helper @@ -2496,12 +2496,12 @@ pw_enable_gamemode_basic () { fi else export GAMEMODERUN=1 + if [[ -n "${PW_LD_PRELOAD}" ]]; then + export PW_LD_PRELOAD="${PW_LD_PRELOAD}:libgamemodeauto.so.0" + else + export PW_LD_PRELOAD="libgamemodeauto.so.0" + fi if ! pw_is_process_active gamemoded ; then - if [[ -n "${PW_LD_PRELOAD}" ]]; then - export PW_LD_PRELOAD="${PW_LD_PRELOAD}:libgamemodeauto.so.0" - else - export PW_LD_PRELOAD="libgamemodeauto.so.0" - fi env LD_LIBRARY_PATH="${PW_PLUGINS_PATH}/portable/lib/lib64:${PW_PLUGINS_PATH}/portable/lib/lib32" \ "${PW_PLUGINS_PATH}/portable/bin/gamemoded" &>/dev/null & sleep 0.1 -- 2.54.0