mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2025-02-01 11:22:37 +01:00
Add files via upload
This commit is contained in:
parent
2fa2546b9d
commit
7e1da776b9
@ -951,12 +951,7 @@ else
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the command line arguments
|
function stop_service {
|
||||||
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
|
|
||||||
|
|
||||||
# Stop the service
|
# Stop the service
|
||||||
systemctl --user stop nslgamescanner.service
|
systemctl --user stop nslgamescanner.service
|
||||||
|
|
||||||
@ -971,6 +966,14 @@ if [[ " ${args[@]} " =~ " Stop NSLGameScanner " ]] || [[ $options == "Stop NSLGa
|
|||||||
|
|
||||||
# Reload the systemd user instance
|
# Reload the systemd user instance
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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
|
||||||
|
stop_service
|
||||||
|
|
||||||
# If command line arguments were provided, exit the script
|
# If command line arguments were provided, exit the script
|
||||||
if [ ${#args[@]} -ne 0 ]; then
|
if [ ${#args[@]} -ne 0 ]; then
|
||||||
@ -985,11 +988,13 @@ if [[ " ${args[@]} " =~ " Stop NSLGameScanner " ]] || [[ $options == "Stop NSLGa
|
|||||||
python3 $python_script_path
|
python3 $python_script_path
|
||||||
else
|
else
|
||||||
# User does not want to run NSLGameScanner again
|
# User does not want to run NSLGameScanner again
|
||||||
|
stop_service
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# TODO: probably better to break this subshell into a function that can then be redirected to zenity
|
# TODO: probably better to break this subshell into a function that can then be redirected to zenity
|
||||||
# Massive subshell pipes into `zenity --progress` around L2320 for GUI rendering
|
# Massive subshell pipes into `zenity --progress` around L2320 for GUI rendering
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user