diff options
author | Hugo Osvaldo Barrera <hugo@barrera.io> | 2020-03-20 11:01:58 +0100 |
---|---|---|
committer | Hugo Osvaldo Barrera <hugo@barrera.io> | 2020-06-14 11:31:42 +0200 |
commit | 8bc937a700b9dadef0b7085fb9e792af18530bf9 (patch) | |
tree | dfa73cd1cd826dfb80d8baa177a3c27367e13eca | |
parent | Set redshift to run after graphical-sesion.target (diff) | |
download | redshift-ng-8bc937a700b9dadef0b7085fb9e792af18530bf9.tar.gz redshift-ng-8bc937a700b9dadef0b7085fb9e792af18530bf9.tar.bz2 redshift-ng-8bc937a700b9dadef0b7085fb9e792af18530bf9.tar.xz |
Change services to by wanted by graphical-session
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).
-rw-r--r-- | data/systemd/redshift-gtk.service.in | 2 | ||||
-rw-r--r-- | data/systemd/redshift.service.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/data/systemd/redshift-gtk.service.in b/data/systemd/redshift-gtk.service.in index 439d90e..79e6165 100644 --- a/data/systemd/redshift-gtk.service.in +++ b/data/systemd/redshift-gtk.service.in @@ -8,4 +8,4 @@ ExecStart=@bindir@/redshift-gtk Restart=always [Install] -WantedBy=default.target +WantedBy=graphical-session.target diff --git a/data/systemd/redshift.service.in b/data/systemd/redshift.service.in index 59db2e5..aad31ca 100644 --- a/data/systemd/redshift.service.in +++ b/data/systemd/redshift.service.in @@ -8,4 +8,4 @@ ExecStart=@bindir@/redshift Restart=always [Install] -WantedBy=default.target +WantedBy=graphical-session.target |