mirror of
https://github.com/storytold/wordcraft.git
synced 2026-12-02 02:37:26 -06:00
`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.