Skip to content

fix: restart on macOS and Linux - #189

Open
notryanfraser wants to merge 1 commit into
Rhythia:indevfrom
notryanfraser:fix/restart-relaunch
Open

notryanfraser wants to merge 1 commit into
Rhythia:indevfrom
notryanfraser:fix/restart-relaunch

Conversation

@notryanfraser

Copy link
Copy Markdown

restartGame() passed the relaunch script to /bin/sh without -c, so sh treated it as a filename and the game never came back on macOS/Linux. macOS also resolved Rhythia.app/Contents instead of the .app. Paths passed to the shell are quoted now.

Adds a small util.Platform helper (app bundle path, shell quoting, wait-for-exit). The macOS self-update PR adds the same file, so the two merge cleanly in either order.

Testing

Builds; dotnet format --verify-no-changes and dotnet csharpier check . pass.

Split out of #171 as requested.

AI usage

Done with Claude Code (Anthropic). I reviewed the changes.

🤖 Generated with Claude Code

- restartGame passed the relaunch script to /bin/sh without -c, so sh
  treated it as a filename and the game never came back on macOS/Linux
- macOS relaunch resolved Rhythia.app/Contents instead of the .app
- Quote paths passed to the shell

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant