From c529e8638431426f33687ac0d713aefb27abaedf Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Thu, 17 Oct 2024 03:20:16 -0700 Subject: [PATCH] Update NonSteamLaunchers.sh --- NonSteamLaunchers.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index ca3dd2d..b7b6d7f 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -2316,6 +2316,7 @@ if $DECKY_LOADER_EXISTS && $NSL_PLUGIN_EXISTS; then switch_to_game_mode exit 0 elif $DECKY_LOADER_EXISTS && ! $NSL_PLUGIN_EXISTS; then + show_message "Please enter your password for authentication..." USER_INPUT=$(zenity --forms --title="Authentication Required" --text="Decky Loader detected! But no NSL plugin :( Would you like to inject the plugin and switch to Game Mode?" --separator="|" --add-password="Password") else zenity --error --text="Decky Loader not detected. Please download and install it from their website first and re-run this script to get the NSL Plugin." @@ -2346,7 +2347,10 @@ git clone "$REPO_URL" "$LOCAL_DIR" cd "$LOCAL_DIR" git checkout "$BRANCH_NAME" -show_message "Plugin installed. Switching to Game Mode..." +echo "Restarting the plugin loader service..." +sudo systemctl restart plugin_loader.service + +show_message "Plugin installed and loader restarted. Switching to Game Mode..." # Switch to Game Mode after completion switch_to_game_mode @@ -2357,6 +2361,7 @@ switch_to_game_mode + # TODO: might be better to relocate temp files to `/tmp` or even use `mktemp -d` since `rm -rf` is potentially dangerous without the `-i` flag # Delete NonSteamLaunchersInstallation subfolder in Downloads folder