From 426fb47c242a5d3c45a17bf68b470dce63636996 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Sun, 7 Jun 2026 21:55:58 -0700 Subject: [PATCH] Refine NSL Game Scanner completion messages Updated NSL Game Scanner status messages based on scan state. --- NonSteamLaunchers.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 18a4465..c94a908 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -4367,18 +4367,18 @@ rm -rf "$download_dir" - echo "Script completed successfully." - - -# Check if the symlink exists if [ -L "${logged_in_home}/.config/systemd/user/default.target.wants/nslgamescanner.service" ]; then - # Symlink exists, show message - show_message "Script finished...and the NSLGamesScanner is actively scanning!" + if [ "${NSL_SCAN_STATE}" = "ON" ]; then + show_message "Script finished. The NSL Game Scanner is currently active and scanning." + elif [ "${NSL_SCAN_STATE}" = "MANUAL" ]; then + show_message "Script finished. The NSL Game Scanner is set to MANUAL. Please press Scan to start manually." + elif [ "${NSL_SCAN_STATE}" = "OFF" ]; then + show_message "Script finished. The NSL Game Scanner is currently turned OFF." + fi else - # Symlink does not exist - echo "Symlink does not exist." + show_message "Script finished. The NSL Game Scanner is currently turned OFF." fi exit 0