mpdris2: improve service description
In particular, make sure the systemd service actually starts.
This commit is contained in:
parent
0e9b7aab3c
commit
34dc4a5e03
|
@ -86,15 +86,21 @@ in
|
||||||
xdg.configFile."mpDris2/mpDris2.conf".text = toIni mpdris2Conf;
|
xdg.configFile."mpDris2/mpDris2.conf".text = toIni mpdris2Conf;
|
||||||
|
|
||||||
systemd.user.services.mpdris2 = {
|
systemd.user.services.mpdris2 = {
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "MPRIS 2 support for MPD";
|
Description = "MPRIS 2 support for MPD";
|
||||||
After = [ "graphical-session-pre.target" "mpd.service" ];
|
After = [ "mpd.service" ];
|
||||||
PartOf = [ "graphical-session.target" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5s";
|
||||||
ExecStart = "${cfg.package}/bin/mpDris2";
|
ExecStart = "${cfg.package}/bin/mpDris2";
|
||||||
|
BusName = "org.mpris.MediaPlayer2.mpd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue