Added a service check for the NSLGameScanner.service

This commit is contained in:
Roy 2024-01-22 21:07:54 -08:00 committed by GitHub
parent fe297a5784
commit e8f6eecca0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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