Match Brave Origin refresh on binary path to avoid installer self-match

The stable Brave Origin's process is named plain "brave" (the wrapper
execs /opt/brave-origin-bin/brave), so pgrep -x brave-origin never
matches, and pgrep -f brave-origin also matches the installer's own
floating terminal - which made omarchy-install-browser launch a
headless browser and hang on first install.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-07-19 19:05:42 -07:00
co-authored by Claude Fable 5
parent c50273e93a
commit cc4b92f367
+3 -1
View File
@@ -41,4 +41,6 @@ refresh_running_browser msedge microsoft-edge-stable
set_browser_policy /etc/brave/policies/managed set_browser_policy /etc/brave/policies/managed
refresh_running_browser brave brave refresh_running_browser brave brave
refresh_running_browser brave-origin brave-origin -f # Match on the binary path: the running process is named plain "brave", and a
# bare -f brave-origin pattern would also match the installer's own terminal.
refresh_running_browser /opt/brave-origin-bin/ brave-origin -f