zen-browser-bin still prompts to become the default after link routing
System details
Intel i7-13700HX, NVIDIA RTX 4070 Max-Q, Omarchy 4.0.5-1
What's wrong?
After the link-routing change, Zen asks to become the default browser on every launch even though it already is.
omarchy default browser prints zen, and ~/.config/mimeapps.list still has zen.desktop for http and https. ~/.config/hyprland-mimeapps.list is read first and points both schemes at omarchy-browser.desktop, so xdg-mime query default x-scheme-handler/http returns omarchy-browser.desktop. Zen sees that handler and shows the prompt.
The follow-up in #14441 is supposed to stop this with a DontCheckDefaultBrowser policy. BROWSER_POLICY_FIREFOX_DIRS only lists /usr/lib/firefox/distribution and /opt/zen-browser/distribution. The menu installs zen-browser-bin, whose policy file is /opt/zen-browser-bin/distribution/policies.json. That file has DisableAppUpdate and DefaultSerialGuardSetting only. /usr/lib/firefox/distribution/policies.json does contain DontCheckDefaultBrowser.
Zen is 1.23.3b from zen-browser-bin. Pressing "Set as default" inside Zen would rewrite the handler behind the omarchy-browser.desktop routing, so I have not done that.
Steps:
- Install Zen from the Omarchy menu (zen-browser-bin) and run omarchy default browser zen.
- Update to a release that includes the omarchy-browser.desktop routing.
- Launch Zen.
Confirmed on quattro. Omarchy writes Zen's DontCheckDefaultBrowser policy to /opt/zen-browser/distribution (install/helpers/browser-policy.sh:29, bin/omarchy-install-browser:112). The zen-browser-bin package installs to /opt/zen-browser-bin and ships its own distribution/policies.json there. That file is not in the package's backup array, so every Zen upgrade overwrites it. Since links now route through omarchy-browser.desktop, Zen never sees itself as the default and asks on every launch.
#15909 already fixes this. It writes the policy to /etc/zen/policies/policies.json, which Zen reads in place of the distribution file and pacman never touches, so the setting survives upgrades. It has been run on a disposable Omarchy worker with a real zen-browser-bin. On that worker the prompt showed before the change, went away after it, and stayed away after the package was reinstalled. Two notes for whoever merges it:
- Its body says "fix #7411", so merging it would close #7411. It does not fix #7411. Omarchy's Firefox preferences would still not reach Zen, and once
/etc/zen/policies/policies.jsonexists, Zen ignores the distribution file entirely. Any later fix for #7411 has to write there. - #16317 (letting browsers set themselves as default behind link routing) does not stop this prompt. It wraps
xdg-settings, but Firefox's native Linux default-browser check uses GIO rather thanxdg-settings. That was found by reading the source and has not been tested on a running Zen.
This issue is not a duplicate of #7411. Both come from the same wrong path, but #7411 asks for Omarchy's preferences to reach Zen, and this issue asks for the prompt to stop. Leaving "Set as default" alone, as you did, is right for now.
Checked by reading quattro at 967bbdd73, the zen-browser-bin PKGBUILD and the open pull requests. Codex Medium reviewed the same questions independently. It agreed on the cause and on #15909, and it found the #7411 auto-close and the GIO point about #16317. Nothing was run for this issue itself, because the fix's own verification covers it. Waiting on the maintainer to decide on #15909.