mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06: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 (GridCraft Mac smoke of run 45749038918: refused without `--`, no window, killed with SIGTERM). 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.