-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweak systemd service files to avoid early startup failures #753
Conversation
Ci failures on seem to be entirely unrelated to my changes...? |
Not sure why CI failed out macOS, but it looks like I can't trigger a re-run myself. Can someone with more permissions trigger one please? |
CI should be fixed in master now. Would you be able to rebase? |
The previous reference (`display-manager.service`) is not something that's included with systemd. While it may be present on some user's system (because they created it, or some specific package includes it), it can't be expected to be present. On the other hand, `graphical-session.target` is included with systemd, and can be expected to be there, and be triggered when starting a graphical session. This guarantees that redshift will only run AFTER a graphic session is up (eg: either Xorg or Wayland are up).
The previous value (`default.target`) meant that redshift got started when a user session began, at which point we can't expect a graphic session to be up and running (eg: Xorg or Wayland may have not even been invoked yet). Setting `WantedBy=graphical-session.target` ensures that, when the service is enable, it'll only get run when starting a graphical session (again, either Xorg or Wayland, whatever DE's may be used).
Rebase and passing! ✔️ Happy to see lots of activity again, thanks for maintaining this! |
Thanks @WhyNotHugo ! |
Does version 1.12-4 include this change? (Using on archlinux) |
Nope. As far as I can see Arch's package is building the last release from the source, and the last release (1.12) is from 2018. I think we need a new release of Redshift finally. |
@lukasz-zaroda gammastep includes this change |
This PR addresses two somewhat similar issues in the systemd service files, that address failures due to redshift starting up too early.
See the commit messages on each commit for further in-depth explanation of both (since they're slightly separate issues, but amount to very similar problems).
Very strongly related to #742, but doesn't entirely fix it.