Merge pull request #753 from WhyNotHugo/systemd-tweaks

Tweak systemd service files to avoid early startup failures
This commit is contained in:
Jon Lund Steffensen
2020-06-14 09:23:15 -07:00
committed by GitHub
3 changed files with 16 additions and 4 deletions
+12
View File
@@ -124,6 +124,18 @@ Please go to [the issue tracker](https://github.com/jonls/redshift/issues) and
check if your issue has already been reported. If not, please open a new issue
describing you problem.
**When running as a systemd service, redshift fails to connect to
Xorg/Wayland**
You need to export your environment variables when you window manager or
compositor start up. Typically, you want to run this as part of its startup:
systemctl --user import-environment; systemctl --user start graphical-session.target
See your compositor's (or window manager's) documentation for further details
of setting up the systemd user session.
Latest builds from master branch
--------------------------------
+2 -2
View File
@@ -1,11 +1,11 @@
[Unit]
Description=Redshift display colour temperature adjustment (GUI)
Documentation=http://jonls.dk/redshift/
After=display-manager.service
After=graphical-session.target
[Service]
ExecStart=@bindir@/redshift-gtk
Restart=always
[Install]
WantedBy=default.target
WantedBy=graphical-session.target
+2 -2
View File
@@ -1,11 +1,11 @@
[Unit]
Description=Redshift display colour temperature adjustment
Documentation=http://jonls.dk/redshift/
After=display-manager.service
After=graphical-session.target
[Service]
ExecStart=@bindir@/redshift
Restart=always
[Install]
WantedBy=default.target
WantedBy=graphical-session.target