From 27bd4796ae07bf0974a0d3d1dfaadc8759455085 Mon Sep 17 00:00:00 2001
From: Boria138 <boriabloger@protonmail.com>
Date: Thu, 11 Apr 2024 15:44:03 +0500
Subject: [PATCH] Fixed gamescope in flatpak (Only if RUNTIME is off)

---
 data_from_portwine/scripts/functions_helper | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper
index 56cb23b3..8c689ce9 100755
--- a/data_from_portwine/scripts/functions_helper
+++ b/data_from_portwine/scripts/functions_helper
@@ -2201,6 +2201,7 @@ pw_run () {
             echo ""
             print_info "Log WINE:"
             env FAKE_VAR= \
+            ${PW_RUN_GAMESCOPE} \
             ${PW_GAMEMODERUN_SLR} \
             ${PW_MANGOHUD_SLR} \
             "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]} &>>"${PW_LOG_TO_FILE}"
@@ -2212,6 +2213,7 @@ pw_run () {
             echo "Log WINE:" > "${PW_LOG_TO_FILE}"
             print_info "Log WINE:"
             env FAKE_VAR= \
+            ${PW_RUN_GAMESCOPE} \
             ${PW_GAMEMODERUN_SLR} \
             ${PW_MANGOHUD_SLR} \
             "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[@]}