xscreensaver: restart if settings change

This commit is contained in:
Robert Helgesson 2020-08-02 14:05:18 +02:00
parent dbf6b2d2ab
commit 152769aed9
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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 = {