Repository navigation
Fix omarchy-launch-browser crashing Chrome when man-db is absent - #12841
AyanMulla09 wants to merge 1 commit into
Conversation
Private-mode flag detection ran the default browser with --help and grepped for MOZ_LOG. Chrome's --help execs man to show its manual page; on an image without man-db that exec fails with ENOENT and kills Chrome with SIGTRAP before it ever launches, with the crash's stderr silently discarded. Detect the flag from the executable name instead, the same way the Edge branch already does, so no subprocess is run at all. Fixes omacom#12564 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
One private-mode compatibility regression remains in the new browser-name list. Verified: removing the Preserve Waterfox's private-window flagWith Waterfox's shipped private desktop action uses Impact: the private-window request is lost for Waterfox users. Its command-line handler ignores the unknown Suggested change: retain non-probing detection, include Review informationTest scope: head Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra initial source inspection, independent Fable 5.1 and separate Astra reviews, followed by verification of the reported claims against targeted evidence. |
|
Thanks for tracking this down. The bug is real and still on Three open pull requests fix it: this one, #9128 and #11455. I compared their diffs against current
One part of #9128 is a product decision rather than a fix. When the browser is not in its list and What was checked: the three diffs, read against Next: the maintainer chooses between the three. Nothing is needed from you unless they ask. |
Summary
omarchy-launch-browserdecided the private-mode flag by running the default browser with--helpand grepping the output forMOZ_LOG.--helpexecsmanto show its manual page instead of printing to stdout. On an image withoutman-db, that exec fails with ENOENT and Chrome dies with SIGTRAP before the browser it was asked to launch even starts.2>/dev/nullhides the failure, so the crash looks unrelated to the launcher.Fixes #12564
Test plan
test/shell.d/launch-browser-test.shwith a mock browser that fails on--help(mirroring the man-db-less Chrome crash) and asserts--helpis never invoked. Confirmed it fails against the unpatched script and passes with the fix.test/shell.d/launch-browser-test.shdirectly — all cases pass.test/shellsuite; the same 5 files fail on a cleanquattrocheckout with no changes, so they're unrelated to this fix.