mirror of
https://github.com/JakeStanger/mpd-discord-rpc.git
synced 2026-07-11 20:15:29 +01:00
[GH-ISSUE #8] Can't connect to socket file #3
Labels
No labels
bug
enhancement
help wanted
package
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/mpd-discord-rpc#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MonterraByte on GitHub (Oct 11, 2020).
Original GitHub issue: https://github.com/JakeStanger/mpd-discord-rpc/issues/8
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-rpcfails to connect. Here's my config file:I modified the
try_get_mpd_connfunction to print the error fromMPDClient::connectinstead of discarding it, and got this:@JakeStanger commented on GitHub (Oct 11, 2020):
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.