Closed MonterraByte closed 2 years ago
I think this might be a limitation of the upstream library. Perhaps I'm wrong, but the docs seem to indicate it only works over TCP. You might want to raise an issue there and see if they're willing to fix it. If not, I'll perhaps look into a different MPD library or something.
As an aside, would you mind creating a PR for your modification to try_get_mpd_conn
? Swallowing errors sounds like a pain and I'd much rather it displayed them as you've got it doing.
I run mpd using a socket file (
bind_to_address "~/.mpd/socket"
in the mpd config file). This works fine for most applications, like Cantata, ncmpc, mpdris2, etc.However,
mpd-discord-rpc
fails to connect. Here's my config file:I modified the
try_get_mpd_conn
function to print the error fromMPDClient::connect
instead of discarding it, and got this: