From fe297a5784c272f7fa6f4032edeceec8ca49235f Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Mon, 22 Jan 2024 20:58:15 -0800 Subject: [PATCH] trying to fix command line for Scanner --- NonSteamLaunchers.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index df25ff2..8a4ec49 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -1163,9 +1163,14 @@ if [[ $options == "Move to SD Card" ]]; then exit 1 fi - +# Get the command line arguments +args=("$@") # Check if the Stop NSLGameScanner option was passed as a command line argument or clicked in the GUI if [[ " ${args[@]} " =~ " Stop NSLGameScanner " ]] || [[ $options == "Stop NSLGameScanner" ]]; then + + #Delete the NSLGameScanner.py + rm -rf ${logged_in_home}/.config/systemd/user/NSLGameScanner.py + # Delete the service file rm -rf ${logged_in_home}/.config/systemd/user/nslgamescanner.service