omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

launch webapp fails when default browser is Firefox (no Chromium installed)

Open alkevintan opened this issue 3 months ago • 4 comments

What happened

omarchy launch webapp https://messenger.com fails with:

error: path "--app=https://messenger.com" does not exist!

Expected: messenger.com opens as a web app (app mode) in the default browser.

Reproduction

  1. Install Firefox as the only browser and set it as default (xdg-settings get default-web-browser → firefox.desktop).
  2. Run omarchy launch webapp https://messenger.com.

Root cause

/usr/share/omarchy/bin/omarchy-launch-webapp whitelists only Chromium-family browsers and falls back to chromium.desktop for anything else:

case $browser in
google-chrome* | brave* | microsoft-edge* | opera* | vivaldi* | helium*) ;;
*) browser="chromium.desktop" ;;
esac

exec setsid uwsm-app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"

With Firefox set as default, chromium.desktop doesn't exist, so the sed extraction returns an empty binary path and the command degrades to:

uwsm-app -- --app="https://messenger.com"

uwsm-app then treats --app=... as the executable path → error: path "... does not exist!".

Suggested fix: add Firefox to the supported browser list (Firefox supports --app=<url>), and/or fall back to the actual default browser's desktop file instead of hardcoding chromium.desktop.

System details

  • Omarchy: 4.0.0-1
  • Arch x86_64, Intel Celeron N4020 (GeminiLake UHD 600)
  • Default browser: firefox.desktop

alkevintan avatar Aug 15 '26 22:08 alkevintan

I ran into this exact issue on Omarchy 4.0.2-1 (Firefox 154 as default browser, Google Chrome 152 also installed).

Root cause (for anyone landing here)

omarchy-launch-webapp only recognizes Chromium-family browsers (google-chrome* | brave* | microsoft-edge* | opera* | vivaldi* | helium*). When the default browser is Firefox, the script falls back to chromium.desktop — but that desktop file does not exist when no Chromium package is installed, so the sed extraction returns empty and the final command becomes:

setsid uwsm-app -- --app="https://example.com/"

uwsm-app then treats --app=... as a file path and fails with:

Error: Path "--app=https:/example.com" does not exist!

Workaround (keep Firefox as default)

Create the missing fallback pointing to any installed Chromium-family browser. Example with Google Chrome:

mkdir -p ~/.local/share/applications
cat > ~/.local/share/applications/chromium.desktop <<'EOF'
[Desktop Entry]
Version=1.0
Name=Chromium
GenericName=Web Browser
Comment=Web browser (fallback for Omarchy webapps)
Exec=/usr/bin/google-chrome-stable %U
Terminal=false
Type=Application
Icon=google-chrome
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
EOF
update-desktop-database ~/.local/share/applications

Adjust Exec= to your installed browser: which google-chrome-stable brave microsoft-edge vivaldi chromium.

Full guide (PT-BR) with verification steps: https://github.com/eds-4d5/omarchy-webapp-fix

Hope this helps! 🙌

eds-4d5 avatar Sep 03 '26 20:09 eds-4d5

I have a related issue, the links from web app open in Chromium, but I have the default browser set to Zen

razmikb avatar Sep 17 '26 21:09 razmikb

I hit the same failure and ended up writing a user-local workaround for anyone blocked on this in the meantime: See here. It installs an override of omarchy-launch-webapp in ~/.local/bin that uses Firefox's experimental Taskbar Tabs (-taskbar-tab) when Firefox is the default browser, and delegates to the stock launcher otherwise. It doesn't touch /usr/share/omarchy and has an uninstall script.

Caveats: it needs browser.taskbarTabs.enabled in Firefox config (done by install script automatically) and Firefox opens a new window on each launch. Happy to share more detail if this is useful for whoever picks up the proper fix. Write-up: See here

superb-striker avatar Oct 07 '26 05:10 superb-striker

This is still broken on quattro, and #13879 fixes it. That pull request links this issue, so this one will close when it merges.

What happens. bin/omarchy-launch-webapp accepts only a Chromium-based default browser. For anything else, Firefox and Zen included, it switches to chromium.desktop without checking that Chromium is installed. With no Chromium the browser command comes back empty, and the launch becomes uwsm-app -- --app=<url>, which fails with the path error you saw. The launcher hasn't changed since #13879 reproduced this on a worker built from the Omarchy ISO.

What #13879 changes. If your default browser can't open web apps, it uses the first installed Chromium-based browser instead (Chromium, Chrome, Brave, Edge, Vivaldi, Opera or Helium). If none is installed, it shows a notification saying so and launches nothing. Firefox stays your default browser either way. Making Firefox itself open web apps isn't possible this way, because Firefox has no Chromium-style --app=<url> mode. Its -app flag is for something unrelated.

Links from a web app opening in Chromium (the Zen comment) is a different behaviour. Your web app is already running in Chromium, and links clicked inside it stay in that browser. This launcher doesn't control that, and #13879 doesn't change it.

Competing fix. #14200 handles the same failure more narrowly. It exits with an error when no browser command is found, and doesn't try any other installed browser. Which one goes in is the maintainer's call.

Who checked it. Claude Opus 5.5 read the code on quattro and the fix in #13879. Codex Medium reviewed both separately. It agreed on the cause, that #13879 fixes it, and that the Zen link behaviour is separate. Its agreement may not be independent. It also confirmed from Firefox's source that Firefox has no --app mode for URLs. Next step: the maintainer decides on #13879.

omarchybot avatar Oct 08 '26 05:10 omarchybot