aboutsummaryrefslogtreecommitdiffstats
path: root/data/systemd/redshift.service.in
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera <hugo@barrera.io>2020-03-20 10:59:56 +0100
committerHugo Osvaldo Barrera <hugo@barrera.io>2020-06-14 11:31:42 +0200
commitc1026be5bb51dd21d182fe545155b70adc869d61 (patch)
tree1a854a4f74a931b0b22edb933b41082812363dfa /data/systemd/redshift.service.in
parentMerge branch 'pull/751' (diff)
downloadredshift-ng-c1026be5bb51dd21d182fe545155b70adc869d61.tar.gz
redshift-ng-c1026be5bb51dd21d182fe545155b70adc869d61.tar.bz2
redshift-ng-c1026be5bb51dd21d182fe545155b70adc869d61.tar.xz
Set redshift to run after graphical-sesion.target
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).
Diffstat (limited to '')
-rw-r--r--data/systemd/redshift.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/systemd/redshift.service.in b/data/systemd/redshift.service.in
index bc51514..59db2e5 100644
--- a/data/systemd/redshift.service.in
+++ b/data/systemd/redshift.service.in
@@ -1,7 +1,7 @@
[Unit]
Description=Redshift display colour temperature adjustment
Documentation=http://jonls.dk/redshift/
-After=display-manager.service
+After=graphical-session.target
[Service]
ExecStart=@bindir@/redshift