xscreensaver: restart if settings change
This commit is contained in:
parent
dbf6b2d2ab
commit
152769aed9
|
@ -40,6 +40,10 @@ in {
|
||||||
Description = "XScreenSaver";
|
Description = "XScreenSaver";
|
||||||
After = [ "graphical-session-pre.target" ];
|
After = [ "graphical-session-pre.target" ];
|
||||||
PartOf = [ "graphical-session.target" ];
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
|
||||||
|
# Make sure the service is restarted if the settings change.
|
||||||
|
X-Restart-Triggers =
|
||||||
|
[ (builtins.hashString "md5" (builtins.toJSON cfg.settings)) ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
|
|
Loading…
Reference in a new issue