Fix formatting and improve NSLGameScanner restart logic

This commit is contained in:
Roy
2026-06-07 02:06:27 -07:00
committed by GitHub
parent cd124132cc
commit e9c657edf1
+7
View File
@@ -2404,6 +2404,13 @@ if [[ " ${args[@]} " =~ " 🔍 " ]] || [[ $options == "🔍" ]]; then
# User wants to run NSLGameScanner again
show_message "NSLGameScanner is now restarting!"
update_nsl_game_scanner
# Restart Steam since the scanner is being restarted
echo "Restarting Steam..."
killall steam 2>/dev/null || true
while pgrep -x steam >/dev/null; do sleep 1; done
nohup /usr/bin/steam -silent %U &>/dev/null &
if systemctl --user list-unit-files | grep -q "nslgamescanner.service"; then
echo "[NSL] Starting NSL Game Scanner service..."
systemctl --user start nslgamescanner.service