From 53a803b44707184a7db5cd94d20fd9319f240d8a Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:33:38 -0800 Subject: [PATCH] Update NonSteamLaunchers.sh --- NonSteamLaunchers.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 80d4996..362449f 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -2610,13 +2610,18 @@ if [ $? -eq 1 ]; then echo "$USER_PASSWORD" | sudo -S rm -rf /tmp/NonSteamLaunchersDecky* fi -set -x -cd "$LOCAL_DIR" +# Check if update was done +if [ $? -eq 1 ]; then + set -x + cd "$LOCAL_DIR" -show_message "Plugin installed. Switching to Game Mode..." -switch_to_game_mode + show_message "Plugin installed. Switching to Game Mode..." + switch_to_game_mode -sudo systemctl restart plugin_loader.service + sudo systemctl restart plugin_loader.service +else + echo "No update needed. Skipping Game Mode switch." +fi