Skip to content

dankinstall: enable dms.service instead of wanting it from hyprland-session.target - #3718

Closed
Pedroj-64 wants to merge 1 commit into
AvengeMedia:masterfrom
Pedroj-64:fix/hyprland-dms-service-ordering-cycle
Closed

Pedroj-64 wants to merge 1 commit into
AvengeMedia:masterfrom
Pedroj-64:fix/hyprland-dms-service-ordering-cycle

Conversation

@Pedroj-64

Copy link
Copy Markdown
Contributor

Fixes #3465

On Hyprland, dankinstall ran systemctl --user add-wants hyprland-session.target dms. hyprland-session.target is Before=graphical-session.target and dms.service is After=graphical-session.target, and systemd orders a target after the units it wants. That closes a cycle:

dms.service/start after graphical-session.target/verify-active after hyprland-session.target/start after dms.service

systemd breaks it by dropping the start job, so dms never autostarts (enabled, inactive in dms doctor).

dms.service already has WantedBy=graphical-session.target, so the Hyprland path now just runs systemctl --user enable dms.service.

The test puts a fake systemctl on PATH and checks the arguments; it fails on the old code.

Users who already ran the installer keep the old symlink and need to rm ~/.config/systemd/user/hyprland-session.target.wants/dms.service and re-enable. I left that out to keep this small.

…ession.target

hyprland-session.target is ordered before graphical-session.target and dms.service after it, so add-wants created an ordering cycle and dms never autostarted.
@bbedward

bbedward commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

507b818

@bbedward bbedward closed this Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hyprland autostart fails: dms.service ends up under the wrong systemd target

2 participants