Skip to content

Commit c1026be

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

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
@@ -1,7 +1,7 @@
11
[Unit]
22
Description=Redshift display colour temperature adjustment (GUI)
33
Documentation=http://jonls.dk/redshift/
4-
After=display-manager.service
4+
After=graphical-session.target
55

66
[Service]
77
ExecStart=@bindir@/redshift-gtk

data/systemd/redshift.service.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Unit]
22
Description=Redshift display colour temperature adjustment
33
Documentation=http://jonls.dk/redshift/
4-
After=display-manager.service
4+
After=graphical-session.target
55

66
[Service]
77
ExecStart=@bindir@/redshift

0 commit comments

Comments
 (0)