Commit Graph
4 Commits
Author SHA1 Message Date
Hugo Osvaldo Barrera 8bc937a700 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).
2020-06-14 11:31:42 +02:00
Hugo Osvaldo Barrera c1026be5bb 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).
2020-06-14 11:31:42 +02:00
Jon Lund Steffensen fd6cb64a74 Add systemd user unit file for redshift-gtk 2014-03-20 17:27:00 +01:00
Henry de Valence a6f07cbb0e Add systemd .service file for redshift
Add a systemd user .service file to allow users to run redshift as a
daemon using systemd. Also adds a new configure option,
`--with-systemduserunitdir`, which gives the install path.

If set to `no`, systemd support is disabled.
If not set, we use `pkg-config` to find the path.
2014-03-20 17:27:00 +01:00