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).
This commit is contained in:
Hugo Osvaldo Barrera
2020-06-14 11:31:42 +02:00
parent 2e68682cf5
commit c1026be5bb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[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
+1 -1
View File
@@ -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