xscreensaver: add xscreensaver to service PATH

Without this the journal will be filled by

  xscreensaver[468297]: sh: line 1: xscreensaver-command: command not found
  xscreensaver-systemd: 12:29:22: exec: "xscreensaver-command -quiet -deactivate" exited with status 127
This commit is contained in:
afreakk 2022-04-25 20:00:01 +02:00 committed by Robert Helgesson
parent 09f3e67950
commit 223a73c2ba
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -53,6 +53,7 @@ in {
Service = { Service = {
ExecStart = "${pkgs.xscreensaver}/bin/xscreensaver -no-splash"; ExecStart = "${pkgs.xscreensaver}/bin/xscreensaver -no-splash";
Environment = "PATH=${makeBinPath [ pkgs.xscreensaver ]}";
}; };
Install = { WantedBy = [ "graphical-session.target" ]; }; Install = { WantedBy = [ "graphical-session.target" ]; };