From d9d2c90515fd1a6175d42c206f2c190af0de730c Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Mon, 06 Jul 2026 01:17:41 +0000 Subject: [PATCH] gtk: handle rules before falling back to launcher --- gtk/run.go | 9 +++++---- 1 file(s) changed, 5 insertion(s)(+), 4 deletion(s)(-) diff --git a/gtk/run.go b/gtk/run.go --- a/gtk/run.go +++ b/gtk/run.go @@ -127,12 +127,10 @@ return } } - // No preferred browser found - show launcher - showLauncherWindow(app, sanitized, browsers, cfg) - return + // No preferred browser found — fall through to standard routing. } - // No browser specified - use standard routing + // No browser specified or none matched — use standard routing. handleURL(app, browsers, cfg, sanitized) } @@ -149,6 +147,9 @@ launchBrowser(browser, urlStr) return } + // Rule matched but browser not found — show launcher. + showLauncherWindow(app, urlStr, browsers, cfg) + return } // No rule matched: fall back to the favorite browser, else prompt. -- tangled.sh