Jump to content

MPD: Difference between revisions

m
use uid of pipewire user instead of guessing the number
imported>Joeriexelmans
(Restructure article + add section on PipeWire)
imported>Makefu
m (use uid of pipewire user instead of guessing the number)
Line 113: Line 113:
systemd.services.mpd.environment = {
systemd.services.mpd.environment = {
     # https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
     # https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
     XDG_RUNTIME_DIR = "/run/user/1000"; # User-id 1000 must match above user. MPD will look inside this directory for the PipeWire socket.
     XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.userRunningPipeWire.uid}"; # User-id must match above user. MPD will look inside this directory for the PipeWire socket.
};
};
</syntaxhighlight>
</syntaxhighlight>
Anonymous user