Skip to content

Ignore AppleDouble metadata when resolving native game programs - #401

Merged
elripalda merged 2 commits into
elripalda:mainfrom
thehobbit85:codex/fix-390-appledouble-program
Nov 25, 2026
Merged

elripalda merged 2 commits into
elripalda:mainfrom
thehobbit85:codex/fix-390-appledouble-program

Conversation

@thehobbit85

Copy link
Copy Markdown
Contributor

On external drives, macOS AppleDouble metadata files such as ._Dusklight.app can have execute permission. The profile resolver treated that AppleDouble sidecar as the native game program before considering the declared Dusklight.app/Contents/MacOS/Dusklight path, causing the launch failure reported in #390.

Exclude ._* metadata from native-twin selection, including filenames with normally accepted executable extensions. The regression uses the bundled Dusklight profile and synthetic files; no game files are needed.

Validation: both regressions fail before the fix and pass after it; full Rust suite 956 passed / 1 ignored; full UI suite 661 passed / 11 platform skips; git diff --check clean. This fixes the launcher choosing metadata, without claiming to validate the game's runtime.

Fixes #390.

@Xarishark Xarishark self-assigned this Nov 25, 2026
exFAT and NTFS drives give every file the run permission, so a Dusklight.log or game.pck whose name matched could still be taken for the game. Judge it like install::is_program: an ELF, a #! script, or on a Mac a program for this processor.

@Xarishark Xarishark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All notes resolved and CI passed. Approving.

@elripalda
elripalda merged commit 123fffc into elripalda:main Nov 25, 2026
6 checks passed
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.

Crash: Dusklight closed with code 126

3 participants