Skip to content

The agent that grows with you

refactor(cli-misc): linux_desktop_entry.py — collapse reroute decision

Teknium6eb324ae344a
diff --git a/hermes_cli/linux_desktop_entry.py b/hermes_cli/linux_desktop_entry.py
index 521abcb9a9e..5bdd8331117 100644
--- a/hermes_cli/linux_desktop_entry.py
+++ b/hermes_cli/linux_desktop_entry.py
@@ -185,10 +185,8 @@ def _resolve_hermes_bin_for_desktop_entry(
if not primary:
return primary
- if rerouted:
- return rerouted
if rerouted is not None:
- return primary
+ return rerouted or primary
# argv[0] was checkout-internal AND PATH had no `hermes` — common in stripped systemd user
# sessions and autostart relaunches. Probe the installer's known wrapper locations; each