mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
fix: Add as non-Steam game asks Steam to close again every 15 s (a Steam that was still starting ignored it)
This commit is contained in:
1 parent
3a0692fdf2
commit
d8b2e812c5
2 files changed
+8
-3
No files matched your search
+6
-2
@@ -62,8 +62,12 @@ steamgame_edit() {
|
||||
steamgame_steam_busy && return 1
|
||||
was_running=true
|
||||
info "Closing Steam for a moment (it only reads its games list at startup)..."
|
||||
steam -shutdown >/dev/null 2>&1
|
||||
for ((i = 0; i < 60; i++)); do pgrep -x steam >/dev/null || break; sleep 1; done
|
||||
# A Steam that's still starting ignores the request: ask again.
|
||||
for ((i = 0; i < 90; i++)); do
|
||||
((i % 15 == 0)) && steam -shutdown >/dev/null 2>&1
|
||||
pgrep -x steam >/dev/null || break
|
||||
sleep 1
|
||||
done
|
||||
pgrep -x steam >/dev/null && { err "Steam didn't close; nothing changed."; return 1; }
|
||||
fi
|
||||
"$1"; local rc=$?
|
||||
|
||||
Reference in new issue
Block a user