From e8f6eecca05f0c0a2f484ab97203cec4606574cb Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Mon, 22 Jan 2024 21:07:54 -0800 Subject: [PATCH] Added a service check for the NSLGameScanner.service --- NonSteamLaunchers.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 8a4ec49..1688ff3 100755 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -1165,10 +1165,14 @@ 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 + # Stop the service + systemctl --user stop nslgamescanner.service + + # Delete the NSLGameScanner.py rm -rf ${logged_in_home}/.config/systemd/user/NSLGameScanner.py # Delete the service file