systemd service update

This commit is contained in:
Reid 2024-09-14 23:46:45 -07:00
parent f909e8c6b7
commit a6dbe2cd0a
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD

View file

@ -91,11 +91,17 @@
systemd.user.services.lastfmpris = {
Unit = {
Description = "a rust application to scrobble your currently playing song on last.fm with mpris";
Requires = ["graphical-session.target"];
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = "${lib.getExe cfg.package}";
Restart = "on-failure";
RestartSec = 1;
};
};