Repository navigation
Stop herdr server in parallel with Hyprland on shutdown - #19919
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryMoves
No actionable issues were found.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
default/hypr/autostart.luapreviously launchedsetsid herdr serverthroughuwsm-app, which placed it inapp-graphical.slice. Becauseapp-graphical.sliceis orderedAfter=graphical-session.target, systemd had to wait ~0.5s forherdr server(and every pane child in its scope) to exit before Hyprland could even begin stopping — and any stubborn pane child stalledsession-1.scopeuntil timeout.Launch
herdr serveras a transient user service (omarchy-herdr-server.service) inapp.slicewith:PartOf=graphical-session.target(withoutAfter=graphical-session.target) so it stops with the session in parallel with Hyprland (~0.5s saved on every shutdown)setsidsemantics preserved so remote clients don't prompt to restart it) and inherited graphical environment (WAYLAND_DISPLAYetc.)KillMode=mixedsoSIGTERMgoes only toherdr server(letting it save pane/workspace state cleanly on logout and shutdown), and remaining pane processes are cleaned up withSIGKILLas soon asherdr serverexits--collectso exited/failed transient units don't linger across re-logins.Verification
luac -p default/hypr/autostart.lua./test/shell.d/config-test.shsystemd-run --user --quiet --collect --slice=app.slice --property=PartOf=graphical-session.target --property=KillMode=mixedsetsPartOf=graphical-session.targetwithoutAfter=graphical-session.targetand inheritsWAYLAND_DISPLAY,HYPRLAND_INSTANCE_SIGNATURE,OMARCHY_PATH, andPATH.