From: Hugo Villeneuve Date: Sun, 29 Mar 2026 02:56:32 +0000 (-0400) Subject: mpd: add local socket support X-Git-Url: http://gitweb.hugovil.com/sitemap.xml?a=commitdiff_plain;h=6a7033788b13b45c8e7989a2272ed9be9740620a;p=yocto%2Fmeta-hvmpd.git 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 --- 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