A launch with no verb opens the window only from the app bundle, a double-click or --gui #655
Loading…
Reference in a new issue
No description provided.
Delete branch "cli-no-verb-window-20261029"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A launch with no verb opens the window only from the app bundle, a double-click or --gui
A launch with no verb took "stdin is not a terminal" as a desktop launch and
opened the GUI window. A script, a pipe, cron or an agent that ran
sourcererwithout a verb got a window on the desktop instead of the usage.
The decision is now
cli.opensWindow, a pure function with its own test:--guiand--clidecide first; then the window opens on macOS only when theexecutable runs from the app bundle (
sourcerer.app/Contents/MacOS/sourcerer,zig build -Dgui macos-app), and on Windows only for a double-clickedexecutable (the only process on its console). Every other launch with no verb,
with or without a terminal, prints
sourcerer: no verb; run sourcerer --helpand exits 2. The macOS package installs only
/usr/local/bin/sourcerer, whichFinder opens in Terminal: it prints the usage, as before.
Gates