Repository navigation
Conversation
Zen falls through to chromium.desktop. When that entry has no Exec, do not call uwsm-app with an empty command. The Chromium allowlist is unchanged.
|
chessing234
left a comment
There was a problem hiding this comment.
Requesting changes on b90faeb.
[P2] Isolate the desktop-entry lookup in the new regression test (test/shell.d/launch-webapp-empty-exec-test.sh:51-57). The zen.desktop case falls back to chromium.desktop, and the real launcher searches both the fake user's application directory and /usr/share/applications. On a host with Chromium installed, it finds a valid Exec, launches through the stubs, and returns 0; the test expects 1. Changing HOME does not hide the host's /usr/share/applications/chromium.desktop.
The supplied test passes here when Chromium is absent. I repeated it with a Chromium desktop entry in one of the actual searched application directories, without modifying /usr, and reproduced status=0 followed by not ok - empty browser exec exits 1. The same lookup makes the case fail on a Chromium-equipped Linux host.
Please control the desktop-entry search result for the missing-Exec cases while also retaining a separate valid-Exec case. This confirms the existing host-dependent-test thread; I did not find a defect in the added empty-Exec guard itself.
|
Thanks for picking this up from #14163. Failing closed here makes sense. Two things:
|
Plant a host-like chromium.desktop outside OMARCHY_APPLICATIONS_DIRS so the zen fallback cannot false-pass when a real Exec exists on the host search path (Chessing234 / jandrusk on omacom#14200).
Let tests point the launcher at an isolated applications tree so a host chromium.desktop cannot shadow the empty-Exec fail-closed path. Default search order is unchanged when the override is unset.
|
Thanks Chessing234 and jandrusk — the empty-Exec regression is now hermetic.
On the notification idea: #9206 already covers a clear warn + desktop toast for missing Chromium-family browsers, so I left notify out of this PR to avoid overlap. Happy to revisit if you'd rather see a minimal critical toast here too. |
|
Thanks. |
|
Reviewed by reading the diff at a92a616 against current The classification is unsettled, so this got no label. Claude Opus 5.5 classified it as a bug fix: on #13879 fixes the same bug and was opened first (30 September, before this one on 4 October). It is built on the current launcher too, and it also exits 1 when no browser command resolves. On top of that it sends a critical notification, which covers the keybinding and app-grid launches jandrusk raised above, where stderr goes nowhere. It also falls back to any installed Chromium-based browser instead of only Two small things in the test, for whichever way this goes:
This is now waiting on the maintainer to choose between this pull request and #13879. The classification also needs a second opinion that actually ran. |
Summary
"omarchy-launch-webapp" can fall back to "chromium.desktop" while Chromium is not installed. The resolved "Exec" is then empty and "uwsm-app" receives "--app=" as though it were a path.
This keeps the existing Chromium-only allowlist and fails clearly before browser handoff when no "Exec" can be resolved.
Closes #14163.
Credit: @TowhidMolla-Dev reported the root cause and minimal fail-closed direction in #14163. This PR implements that direction and adds regression coverage.
Verification
bash test/shell.d/launch-webapp-empty-exec-test.sh
All three regression cases pass.