Skip to content

Skip the Herdr server at login when Herdr isn't installed - #18888

Open
stevederico wants to merge 1 commit into
omacom:quattrofrom
stevederico:fix/18767-herdr-autostart-guard
Open

stevederico wants to merge 1 commit into
omacom:quattrofrom
stevederico:fix/18767-herdr-autostart-guard

Conversation

@stevederico

Copy link
Copy Markdown
Contributor

fixes #18767

Since #16572, default/hypr/autostart.lua starts setsid herdr server on every session start with no check that Herdr is there. Herdr is optional, so anyone who removes it gets an "App failure: Command not found: herdr" notification at every login, and can't turn it off from their own autostart.

This guards the launch with o.cmd_present("herdr"), the same way the Lazydocker binding is guarded. Installed Herdr still starts with the session.

Added two cases to hyprland-default-config-test.sh: installed Herdr starts its server, missing Herdr skips it. The second fails on quattro and passes with this change.

#12004 carries the same guard, but bundled with whether Remove Preinstalls should uninstall Herdr. This is just the login error.

@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Starts the Herdr server at login only when o.cmd_present("herdr") returns true.

  • Hyprland starts Herdr only when its command is available.

Reviews (1) · Last reviewed commit: "Skip the Herdr server at login when Herd..." · Reviewed by Greptile

@omarchybot omarchybot added the bug Something isn't working label Nov 17, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed the startup guard, the installed/missing-Herdr test cases, the launch helpers and #18767 against #12004. Both PRs use the same guard and preserve setsid when Herdr is installed; this one covers no additional runtime case. #12004 also changes preinstall removal and restoration, so the complete PRs are not duplicates.

The queue gives the older fix priority. This PR’s two autostart tests add coverage missing from #12004, so I queued them for folding into that branch with credit to Steve Derico. This PR remains open, waiting on the maintainer’s decision about the overlap and whether to land the login guard separately from the preinstall changes. Nothing is needed from the author.

Codex High reviewed the source. Opus 5.5 High and muse-wonder via pi, thinking high, also compared both diffs, found no code defects and agreed with that disposition; their independence from this review is not guaranteed. No worker tests ran: the queue stops verification of the competing fix that does not take priority. No reproduction or runtime verification is claimed.

omarchybot added a commit to markallisongit/omarchy that referenced this pull request Nov 17, 2026
Fold the startup cases from omacom#18888 into the older fix. They exercise the real autostart callback and command lookup so dropping the guard fails when Herdr is missing, while an installed Herdr still starts its server.

Keep the coauthor trailers together so Git recognizes the contributor credit.

Co-Authored-By: Steve Derico <steve@bixbyapps.com>
Co-Authored-By: Codex High <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"App failure: Command not found: herdr" at every login when Herdr isn't installed (4.5 autostart has no guard)

2 participants