omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

launcher.hides entry "hermes" removes Hermes Desktop from the launcher even when the hermes-desktop package is not installed

Open pablo-io opened this issue 2 months ago • 4 comments

Image

System details

AMD Ryzen 7 8745HS (Radeon 780M / AMD HawkPoint), Omarchy 4.0.3-1, omarchy-settings 4.0.3-1, Hyprland 0.56.2-2, kernel 7.2.3-arch1-3. omarchy-debug --no-sudo --print log: https://logs.omarchy.org/1sBFFB (expires in 24h)

What's wrong?

hermes was added to default/omarchy/launcher.hides in 9fb73b005 ("Hide the upstream Hermes launcher in Omarchy"). Configured hides are applied to every desktop entry, including the user's own in ~/.local/share/applications, and they are matched purely on the entry id (= file name):

  • shell/services/AppLibrary.qml:221 — the only hides file read is OMARCHY_PATH/default/omarchy/launcher.hides (i.e. the package-owned copy under /usr/share/omarchy).
  • AppLibrary.isHiddenEntry() — returns true for configuredHiddenEntryIds[id], no matter which directory the entry came from.

The intent, per the commit message and the new test/shell.d/app-search-test.sh case, is to keep exactly one row when both the packaged hermes-desktop launcher and Hermes's self-registered hermes entry exist. But the hide is unconditional, so on a machine where the hermes-desktop package is not installed it hides the user's only Hermes launcher, and the app silently vanishes from the launcher.

Hermes Desktop registers/refreshes that exact file name itself (from its own docs): "On Linux, launches refresh $XDG_DATA_HOME/applications/hermes.desktop (by default ~/.local/share/applications/hermes.desktop) so Hermes appears in the application menu."

Reproduce

  1. Omarchy 4.0.3, no Hermes package installed: pacman -Qs hermes → nothing, and ls /usr/share/applications | grep -i hermes → nothing.
  2. Install Hermes Desktop from source (hermes desktop), which writes ~/.local/share/applications/hermes.desktop.
  3. Open the launcher and search hermes → No matches for "hermes".

The entry itself is fine:

$ desktop-file-validate ~/.local/share/applications/hermes.desktop   # clean
$ gtk-launch hermes.desktop                                          # app starts
$ grep -x hermes /usr/share/omarchy/default/omarchy/launcher.hides
hermes

Capture: launcher search for hermes returning No matches for "hermes" — screenshot attached by the reporter (gh cannot upload media).

Expected

Hermes shows in the launcher unless the duplicate it was added to suppress is actually present.

Notes on fixability

There is currently no supported way for a user to un-hide an entry: the hides list is package-owned (/usr/share/omarchy/default/omarchy/launcher.hides, owned by omarchy-settings) and editing it is overwritten on the next omarchy update.

Options, roughly in order of preference:

  1. Make the hide conditional, e.g. only hide hermes when a hermes-desktop entry exists (a when:-style entry in the hides file, or a check in AppLibrary.loadConfiguredHides()).
  2. Only apply configured hides to entries coming from system XDG_DATA_DIRS application dirs, leaving ~/.local/share/applications under user control.
  3. Add a user-level hides file (e.g. ~/.config/omarchy/launcher.hides) that can override packaged hides, so this is at least escapable without touching package files.

Workaround in use

Copying the entry to an id that isn't hidden (~/.local/share/applications/hermes-desktop.desktop). It works, but it collides with the id of Omarchy's own packaged launcher and is not discoverable — anyone who installs Hermes Desktop from source on Omarchy just gets a missing app.

pablo-io avatar Sep 13 '26 05:09 pablo-io

The diagnosis holds on quattro today (9480d1b6a). default/omarchy/launcher.hides:15 still lists hermes. AppLibrary.loadConfiguredHides() (shell/services/AppLibrary.qml:100) turns every line into an unconditional hide by desktop id, and isHiddenEntry() (line 47) ORs that with the per-file scan. So an entry named hermes.desktop is hidden wherever it lives and whether or not the hermes-desktop package is installed. A user's own entry cannot override it: setting NoDisplay=false doesn't help, and there is no user-level hides file. This was confirmed by reading the source; nothing was run, because the cause is fully visible in the code.

The fix is already open as #11000, which was opened a few days before this report and describes the same failure. It removes the static hermes line and has shell/services/hidden-entries.sh emit hermes only while the hermes-desktop package is installed, or when the entry's Exec target no longer exists. With the package absent and a working hermes.desktop, as in your report, the entry stays visible. With the package present, the duplicate is still hidden. #13858 makes the same package-aware change for Hermes's newer id com.nousresearch.hermes. It complements #11000 and does not replace it.

I tried to link #11000 to this issue so it would close when the fix merges, but omabot declined: #11000 is classed as an enhancement because it also changes the Install > AI > Hermes row, and nobody has asked omabot to work on it. Whether to take #11000 is the maintainer's call, so this waits on them.

Codex Medium reviewed this independently. It agreed with the mechanism and that #11000 fixes this scenario, and it noted that an absolute Exec target in #11000 is counted as live if the path exists at all, even when it is a directory or not executable. That doesn't affect this report.

omarchybot avatar Oct 11 '26 23:10 omarchybot

Likely collision between a broad hermes hide and the Desktop vs CLI desktop-ids (#13855 / fix #13858). Can you paste ls /usr/share/applications/*hermes* ~/.local/share/applications/*hermes* 2>/dev/null and your Omarchy version? That'll show whether we should narrow the hide pattern.

jandrusk avatar Oct 13 '26 16:10 jandrusk

A complete fix for this exists: #11000. It passed final review on Oct 15 and was closed as stale after no maintainer response. Branch is intact if anyone wants to pick it up.

KelpME avatar Nov 13 '26 19:11 KelpME

The earlier pointer to #11000 is out of date: it closed without merging. The fix is now open as #19076 and already links this issue. Current quattro (419a5a709) still has the unconditional hermes hide; #19076 removes it and suppresses the upstream entry only while hermes-desktop exists.

Codex High checked the current filtering path and #19076's diff and recorded evidence. Its separate review reproduced this in the full Apps UI on an ISO worker: standalone Hermes was missing on base, visible with the fix, and missing again with the fix reverted. That review also checked replacement addition/removal. Those runs used an earlier base; this issue session checked source and did not rerun them.

Opus 5.5 High and muse-wonder via pi, thinking high agreed that #19076 addresses the reported case. Reviewer independence is not guaranteed. This issue waits on the maintainer's scope and design decision about #19076.

omarchybot avatar Nov 18 '26 03:11 omarchybot