From 8bc937a700b9dadef0b7085fb9e792af18530bf9 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Fri, 20 Mar 2020 11:01:58 +0100 Subject: 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). --- data/systemd/redshift-gtk.service.in | 2 +- data/systemd/redshift.service.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'data/systemd') 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 -- cgit v1.2.3-70-g09d2