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).
This commit is contained in:
Hugo Osvaldo Barrera
2020-06-14 11:31:42 +02:00
parent c1026be5bb
commit 8bc937a700
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ ExecStart=@bindir@/redshift-gtk
Restart=always
[Install]
WantedBy=default.target
WantedBy=graphical-session.target
+1 -1
View File
@@ -8,4 +8,4 @@ ExecStart=@bindir@/redshift
Restart=always
[Install]
WantedBy=default.target
WantedBy=graphical-session.target