Resolve relative CrossOver paths before launch #2

Manually merged
github merged 1 commit from gh-pr/2/head into gh-pr/2/base 2026-11-26 14:42:05 +00:00
Owner

@⁠civilwarinfrance on GitHub · 2026-11-26 09:20 UTC · original
civilwarinfrance:fix/relative-crossover-app → main · +1 −1 · 1 files · 1 commits · merged 2026-11-26 10:11 UTC

Changes

SCARLETT_CROSSOVER_APP=./CrossOver.app passes the launcher’s executable check, but Wine then fails to start because the script has changed into the bottle’s runtime directory. Resolve the app path before changing directories so relative paths work too.

Verification

  • zsh -n scripts/run.sh and zsh -n scripts/build.sh passed.
  • On Apple M4 Max, macOS 26.4, ran the launcher through sandbox-exec with a temporary bottle and a stub Wine executable. The relative path failed before the change. Absolute and relative paths both passed after it, including paths with spaces. The launcher also passed through Wine’s failing exit code and removed the lock and temporary drive mapping.

Tested launcher behavior with synthetic files. CrossOver, D3DMetal and the game were not run.

AI assistance: OpenAI Codex wrote and tested the patch.

**@⁠civilwarinfrance** on GitHub · 2026-11-26 09:20 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/2) `civilwarinfrance:fix/relative-crossover-app` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-26 10:11 UTC ## Changes `SCARLETT_CROSSOVER_APP=./CrossOver.app` passes the launcher’s executable check, but Wine then fails to start because the script has changed into the bottle’s runtime directory. Resolve the app path before changing directories so relative paths work too. ## Verification - `zsh -n scripts/run.sh` and `zsh -n scripts/build.sh` passed. - On Apple M4 Max, macOS 26.4, ran the launcher through `sandbox-exec` with a temporary bottle and a stub Wine executable. The relative path failed before the change. Absolute and relative paths both passed after it, including paths with spaces. The launcher also passed through Wine’s failing exit code and removed the lock and temporary drive mapping. Tested launcher behavior with synthetic files. CrossOver, D3DMetal and the game were not run. AI assistance: OpenAI Codex wrote and tested the patch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:42:02 +00:00
github manually merged commit 9f57c026ad into gh-pr/2/base 2026-11-26 14:42:05 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.