mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
A refused launch profile printed its reason and then, on a macOS desktop session, opened rfd's message box before eframe's event loop existed. That alert needs the AppKit run loop this start never reaches, so the process sat in an invisible modal and had to be killed instead of exiting (seen on GridCraft's nightly Mac smoke, run 45749038918). The refusal now adds the box only where one renders without the app's event loop (Windows' MessageBox, GTK on X11/Wayland) and otherwise leaves the reason on standard error, so the caller's exit(2) is reached. The rule is a pure function with a unit test. PhotoCraft's clap `launch_args` already absorbs the Launcher's `--`, and its own Mac smoke passed: this is the dialog part only, applied preventively.