From 6a7033788b13b45c8e7989a2272ed9be9740620a Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 28 Mar 2026 22:56:32 -0400 Subject: [PATCH] mpd: add local socket support By default, the "config" command is restricted when using the TCP connection: # telnet localhost 6600 Connected to localhost OK MPD 0.24.0 config ACK [4@0] {config} Command only permitted to local clients Add support for local socket so that the config command will work for locally-installed clients (ex: mympd). Signed-off-by: Hugo Villeneuve --- recipes-multimedia/musicpd/mpd_%.bbappend | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-multimedia/musicpd/mpd_%.bbappend b/recipes-multimedia/musicpd/mpd_%.bbappend index b1580f3..f13d219 100644 --- a/recipes-multimedia/musicpd/mpd_%.bbappend +++ b/recipes-multimedia/musicpd/mpd_%.bbappend @@ -37,6 +37,9 @@ do_install:append() { iniconf_set ${D}/${sysconfdir}/mpd.conf zeroconf_enabled "yes" iniconf_set ${D}/${sysconfdir}/mpd.conf zeroconf_name "Serveur Musique MPD" + # Add local socket interface + echo "bind_to_address \"/var/lib/mpd/socket\"" >> ${D}/${sysconfdir}/mpd.conf + echo "audio_output {" >> ${D}/${sysconfdir}/mpd.conf echo " type \"alsa\"" >> ${D}/${sysconfdir}/mpd.conf echo " name \"${ALSA_DEVICE_NAME}\"" >> ${D}/${sysconfdir}/mpd.conf -- 2.47.3