Files
wordcraft/apps
skylartaylor fa5a8a2a34 nightly: keep a document named like a launch argument
`without_launch_args` ran on the whole line, before the separator split, so on
macOS a document whose name starts with `-NS`, `-Apple` or `-psn_` was taken for
a LaunchServices argument and dropped with the word after it: the Launcher's
`-- -NSNotes.docx report.docx` opened neither document (review of #7849).

The split comes first now, so `--` ends the options as it says, and the strip
runs on the options alone. Nothing is lost on either launch path: a Finder
launch carries no separator for its arguments to sit after, and the Launcher
starts the app itself with `std::process::Command`, so it adds no `-psn_`.

cargo test -p wordcraft --bin wordcraft: 64 passed; cargo fmt --all --check and
cargo clippy -p wordcraft --all-targets -D warnings clean.
2026-11-26 09:45:28 +01:00
..