Skip to content

Commit 8bc937a

Browse files
author
Hugo Osvaldo Barrera
committed
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).
1 parent c1026be commit 8bc937a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data/systemd/redshift-gtk.service.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ExecStart=@bindir@/redshift-gtk
88
Restart=always
99

1010
[Install]
11-
WantedBy=default.target
11+
WantedBy=graphical-session.target

data/systemd/redshift.service.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ ExecStart=@bindir@/redshift
88
Restart=always
99

1010
[Install]
11-
WantedBy=default.target
11+
WantedBy=graphical-session.target

0 commit comments

Comments
 (0)