From 92e9ee19a71aeb2b2311a91d0c719fe676748d08 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 10 Sep 2026 03:06:00 +0000 Subject: [PATCH] wolf: fix auto steam-setup-frontends invocation ($0 resolution) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit install_wolf()'s new auto-wire-up called it as 'bash manage.sh steam-setup-frontends', which sets $0 inside manage.sh to the bare string 'manage.sh' (no path). steam-setup-frontends re-invokes itself per emulator via "$0" steam-add-nonsteam-game ..., and a bare 'manage.sh' with no '/' triggers a $PATH lookup instead of running the local file — confirmed live: every emulator already downloaded (Azahar, PCSX2, Cemu, Dolphin) failed with 'manage.sh: command not found' and the run ended with a false "No emulator AppImages found" even though they were sitting right there in emulators/. Invoking it as './manage.sh' instead keeps $0 as './manage.sh', which resolves correctly for the nested re-invocation, matching how every other caller in this file already runs it. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_013BWYKEERLA1a7gv86Z4W23 --- services/wolf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/wolf.sh b/services/wolf.sh index 501c1b7..a1558ad 100644 --- a/services/wolf.sh +++ b/services/wolf.sh @@ -5022,7 +5022,7 @@ PYEOF | while IFS= read -r _sd; do ls "$_sd/.steam/steam/userdata/" 2>/dev/null | head -1; done | head -1) if [ -n "$_WOLF_ANY_STEAM_UID" ]; then log_info "Steam is already signed in — adding downloaded emulators to Steam's library..." - (cd "$WOLF_DIR" && bash manage.sh steam-setup-frontends) \ + (cd "$WOLF_DIR" && ./manage.sh steam-setup-frontends) \ || log_warning "Couldn't auto-add emulators to Steam — run manually: cd $WOLF_DIR && ./manage.sh steam-setup-frontends" else log_info "Once you've signed into Steam via Moonlight, run this to add every downloaded"