From cc4b92f367d63d1b376323ea363b5af9ad8615c6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 19 Jul 2026 18:58:49 -0700 Subject: [PATCH] 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 --- bin/omarchy-theme-set-browser | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-theme-set-browser b/bin/omarchy-theme-set-browser index 4ffa27e7..4dd7592f 100755 --- a/bin/omarchy-theme-set-browser +++ b/bin/omarchy-theme-set-browser @@ -41,4 +41,6 @@ refresh_running_browser msedge microsoft-edge-stable set_browser_policy /etc/brave/policies/managed 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