Webapps don't work, double slashes are changed into single slash
System details
Dell Precision 3571, Omarchy v3.0.2, Firefox browser
What's wrong?
Whatever WebApp I try to launch, they don't work. The double slashes are changed into a single slash. My own created web app doesn't work either.
PWA's only works with chromium browsers. Even if you fix the script and open it in Firefox, there will be no difference than open it normally in a browser tab.
I see.... so this is not an Omarchy bug at all. Because I've always used Firefox, one of the first things I did is uninstalling Chromium and install Firefox. Now the question is: revert to a Chromium-based browser to have Web Apps, or continue using Firefox. I never missed Web Apps... Anyway, I'll close this issue.
For anyone else who comes across this who broke their web app launcher:
Web apps are launched (by default) with omarchy-launch-browser, which uses your default browser, defined in ~/.config/uwsm/default. You can check your current browser with xdg-settings get default-web-browser
You probably changed this to something like:
export BROWSER=firefox
This needs to be a chromium-based browser, for example chromium or google-chrome-stable.
You can still change your "default browser" by editing the super+B shortcut in ~/.config/hypr/bindings.conf:
bindd = SUPER, B, Browser, exec, uwsm app -- firefox --new-window
You can also change your default link handlers in ~/.config/mimeapps.list so that clicking a link in discord, slack, etc will open in firefox:
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop
An alternative is to just replace the hotkeys with the launcher directly:
bindd = SUPER SHIFT, A, ChatGPT, exec, uwsm app -- google-chrome-stable --app="https://chatgpt.com"
But if you just change the bindings, I think if you "install" a webapp, the shortcuts won't work when launched from the super+space menu.
Just to add to dylan's great comment, you'll also likely want to change the binding to launch a private browser. For firefox it is:
bindd = SUPER SHIFT ALT, B, Browser (private), exec, uwsm app -- firefox --private-window