eworm-de / mpd-notification

Notify about tracks played by mpd
GNU General Public License v3.0
86 stars 23 forks source link

Read MPD environment variables #6

Closed mkaito closed 8 years ago

mkaito commented 9 years ago

Namely, MPD_HOST and MPD_PORT are used by other mpd clients, and contain connection data. Beware that MPD_PORT might be set to -1 to signify that MPD_HOST is a path to a unix socket.