Skip to content

feat: choose a separate browser for web apps - #11975

Open
r4lphio wants to merge 10 commits into
omacom:quattrofrom
r4lphio:feat/webapp-browser
Open

r4lphio wants to merge 10 commits into
omacom:quattrofrom
r4lphio:feat/webapp-browser

Conversation

@r4lphio

@r4lphio r4lphio commented Sep 15, 2026 •

Copy link
Copy Markdown

What this does

Users can keep Zen as their regular browser and choose Helium, or another supported app-mode browser, for web apps. A new Setup > Defaults > Web App Browser menu and omarchy default webapp-browser command apply to existing Omarchy web-app shortcuts as well as new ones. Helium is also available in the regular browser selection, install, and remove menus.

The initial Automatic setting keeps the current behavior. It uses the regular browser when that browser supports app mode, otherwise Chromium. An explicit selection stays selected. If that browser is removed, the launcher shows a notification that tells the user how to choose another browser. It does not open a different browser profile.

Helium installs like the other Chromium browsers. The installer writes ~/.config/helium-browser-flags.conf (the file the AUR wrapper reads), sets up the policy directory and theme, and runs omarchy-lifecycle-dispatch post-install helium. A theme change refreshes a running Helium. Removal deletes the flags file.

Verification

  • Rebased onto current quattro. The launcher keeps quattro's data-directory lookup and its "needs Chromium" notification for Automatic mode.
  • These tests pass: launch-browser, default-apps, menu, menu-guards, i18n, platform-app-hooks, theme-set-browser, and ./test/cli. The web-app checks are in launch-browser-test.sh and default-apps-test.sh.
  • Two new checks fail without their fixes: Helium runs its platform hook after its flags file is written, and a removed web-app browser sends a notification.
  • The launcher tests record the uwsm-app call. A regressed launcher cannot start a real browser on a developer machine.
  • Before the rebase, the real launcher opened installed Helium in a fresh profile and kept the requested path, query string, and fragment. I checked the page title and URL through the browser's debugging interface.
  • The menu model, guards, and actions have automated coverage. The new submenu has not had a graphical acceptance run in a disposable VM.

Intentional decisions

Zen is documented as an experimental native-app option. It is not an interchangeable Omarchy app-mode browser, for these reasons:

  • Zen 1.22.1b has Firefox's web-app feature behind browser.taskbarTabs.enabled. Its command-line handler opens a registered app ID. For an unknown ID it creates an app whose start URL is the site's origin, so it drops the path and query. In a fresh-profile test, a request for https://example.com/path?test=one loaded https://example.com/.
  • Apps are matched by hostname, so different paths on one site open the same app.
  • Mozilla tracks configurable start pages as an open enhancement (bug 2035949).
  • Zen app windows on Linux show an empty sidebar (zen-browser/desktop#14314). A screenshot from the test confirmed this.

To treat -taskbar-tab as Chromium's --app would change the behavior of existing shortcuts. These research notes were in docs/ before. Per review, they are now here.

No migration is necessary. Custom launch commands keep their existing behavior. Sign-ins and extensions come from the selected browser's own profile.

Related

#12132 and #5553 also add Helium support. #13879, #11164, #12533, and #13241 change the same launcher lines. The PR that merges second must keep both changes.

Implemented with GPT-6 in the Codex harness, with independent agent review. Rebase and review fixes by Claude Code.

🤖 Generated with Claude Code

@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
@llstrk

llstrk commented Sep 28, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Reviewed at 853d6bf. Verified: the web-app browser preference behaves as described in the tested scope. Two gaps are worth addressing: Helium installs without the Chromium-family setup the other browsers get, and a missing web-app browser fails silently outside a terminal.

Verified: in Automatic mode, with the default XDG_DATA_HOME and whenever the browser's desktop entry exists, omarchy-launch-webapp passes the same uwsm-app arguments on this head as on the merge base (2fbac0c) and current quattro (3faafba). It differs only when no desktop entry exists (last row). The probe used a URL with a path, query and fragment plus an extra --class=An app argument. Every backend was a stub.

Regular default Merge base / quattro This PR (Automatic)
brave-browser.desktop brave brave
helium.desktop helium-browser helium-browser
chromium, firefox, zen or empty chromium chromium
vivaldi-stable.desktop, no desktop entry uwsm-app -- --app=URL (no browser) exit 1 with a message

Verified:

  • An explicit selection is saved as a desktop ID under $XDG_CONFIG_HOME/omarchy/webapp-browser. It applies regardless of the regular default. When that browser is removed, the launch exits 1 and nothing starts.
  • zen and firefox are rejected, as is an uninstalled browser.
  • omarchy default webapp-browser routes to the new command.
  • The menu's checked strings match the IDs the command writes, and the when guards show only installed browsers.
  • The package name, desktop ID and command used for Helium match the AUR helium-browser-bin package (helium.desktop, Exec=helium-browser %U).
  • webapp-browser-test.sh, default-apps-test.sh, menu-test.sh and menu-guards-test.sh pass on the head and on a local merge into quattro. The new test fails on the merge base, and on mutants that ignore the preference or fall back to Chromium when the selected browser is missing.

Helium is installed without the Chromium-family flags and theme setup

In bin/omarchy-install-browser, the new helium) case (lines 86-90) only installs the package and announces it. Every other Chromium-based case also runs setup_chromium_policy_directory, copy_chromium_flags ~/.config/<browser>-flags.conf and omarchy-theme-set-browser:

chromium / chrome / edge / brave / brave-origin:
  pkg add -> policy directory -> copy_chromium_flags -> theme-set-browser -> announce
helium (this PR):
  pkg add -> announce

The AUR wrapper reads ~/.config/helium-browser-flags.conf, which Omarchy never writes. Among the flags in config/chromium-flags.conf, Helium therefore misses:

  • --load-extension= for Omarchy's bundled Copy URL, yt-dlp and WhatsApp Slim extensions.
  • --password-store=gnome-libsecret, which migrations/1784508556.sh pins for the other Chromium-family browsers to prevent cookie and login loss on Hyprland.

In addition, bin/omarchy-theme-set-browser does not ask a running Helium to reload policy (--refresh-platform-policy) as it does for the other Chromium browsers, so a theme change reaches Helium only when its own policy watcher picks it up.

Impact: the PR adds Helium to Install > Browser and to Setup > Defaults > Browser (which installs on demand through this path). manual/25-web-apps.md uses Helium as its example web-app browser, and the same page promises Shift + Alt + L to copy the URL in a web app, which comes from the Copy URL extension. The native messaging hosts need no change: the Helium build that helium-browser-bin ships also reads ~/.config/google-chrome/NativeMessagingHosts, which Omarchy already populates. Helium was not run; the missing extensions follow from source reading of the wrapper and flags.

Suggested change: under helium), add copy_chromium_flags ~/.config/helium-browser-flags.conf and omarchy-theme-set-browser, plus setup_chromium_policy_directory /etc/chromium/policies/managed for parity. Remove that flags file in the Helium case of omarchy-remove-browser, and add a Helium line to omarchy-theme-set-browser. Open PRs #12132 and #5553 make similar Helium changes, so one of them may overlap with this part.

A missing web-app browser fails without a visible message

Both failure branches in bin/omarchy-launch-webapp (lines 19 and 26) only write to stderr and exit 1. Web apps are normally started without a terminal: from applications/*.desktop entries, Hyprland bindings and menu actions. With the selected browser removed, a probe showed exit 1, the message on stderr only, and no omarchy-notification-send call.

Impact: after removing the selected web-app browser, clicking a web app does nothing visible. The PR description says the launcher "reports how to choose another browser", which holds only when it runs from a terminal. omarchy-remove-browser resets the regular default when it matches but never checks the web-app preference.

Suggested change: also call omarchy-notification-send with the same guidance on both branches (bin/omarchy-launch-screensaver does this). Optionally, have omarchy-remove-browser reset the preference to auto, or print a note, when it removes the selected web-app browser.

Install on demand: omarchy default webapp-browser helium, the example in manual/25-web-apps.md, fails with Install helium before selecting it as the web app browser. when Helium is missing. The line above it, omarchy default browser zen, installs on demand. Either add an omarchy install browser helium step to the manual or install on demand as omarchy-default-browser does.

Optional test improvement: the uwsm-app stub in webapp-browser-test.sh runs exec "$@". In a sandboxed run where a regressed launcher (the merge-base version inside the head tree) resolved the system chromium.desktop, the test started the real Chromium binary. Replacing the stub's exec "$@" with printf '%s\0' "$@" > "$TEST_LAUNCH" (after the existing -- check and shift) keeps a failing launcher from starting a browser on a developer machine.

Small notes:


Review information

Test scope: Source review of the head, the merge base and current quattro, plus the AUR helium-browser-bin package, the Helium 0.18.1.1 patch set and build configuration with the relevant Chromium 154 files, and the Zen and Firefox sources cited in the PR's docs/zen-webapps-research.md. The repository tests and behavioural probes of the launcher, the preference command, the dispatcher and the menu guards ran in a sandbox with the desktop and package backends stubbed, on the head, on a local merge into quattro and on base trees. Helium, Zen and a live desktop were not run, and the new submenu was not tested in the graphical menu.

AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

@jandrusk

Copy link
Copy Markdown

Thanks. This branch conflicts with quattro now, so it needs a rebase. Related work to coordinate with: #12132 adds Helium as a supported browser, and #13879 launches web apps in an installed Chromium-based browser. Small nit: docs/zen-webapps-research.md and the probe screenshot read like research notes. They probably belong in the PR description rather than the repo.

@r4lphio
r4lphio force-pushed the feat/webapp-browser branch from 853d6bf to 07cedc5 Compare October 20, 2026 16:55
@greptile-apps

greptile-apps Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous test-layout finding is addressed, and no new actionable issue was found.

Summary

Adds a separate browser choice for web apps and adds Helium to browser setup.

  • Web-app shortcuts use a browser choice separate from the regular browser.
  • Helium joins Omarchy’s regular browser choices and setup flows.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Open web app] --> B{Browser preference}
  B -->|Automatic| C{Default browser supports app mode?}
  C -->|Yes| D[Use default browser]
  C -->|No| E[Use Chromium]
  B -->|Explicit choice| F[Use selected browser]
  D --> G{Browser available?}
  E --> G
  F --> G
  G -->|Yes| H[Open app URL]
  G -->|No| I[Show notification and stop]
Loading

Reviews (3) · Last reviewed commit: "test: move web app browser checks into t..." · Reviewed by Greptile

Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Comment thread bin/omarchy-install-browser Resolved
r4lphio and others added 9 commits November 3, 2026 08:08
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Install its flags, policy directory, and theme, run its platform hook, and refresh its policy on theme changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Route the selection notification through omarchy-i18n. Check that a removed browser shows a notification, and record test launches instead of running them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@r4lphio
r4lphio force-pushed the feat/webapp-browser branch from 07cedc5 to 0d9f2ae Compare November 3, 2026 15:12
Comment thread test/shell.d/webapp-browser-test.sh Resolved
Launcher checks go to launch-browser-test.sh and preference checks to default-apps-test.sh, as AGENTS.md asks. The Helium removal row has no test of its own; it is a declarative menu row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants