szclsya / mpdris2-rs

Exposing MPRIS V2.2 D-Bus interface for mpd
GNU General Public License v3.0
31 stars 1 forks source link

mpdris cannot use a local UNIX socket to connect to mpd #8

Closed Vasily42 closed 7 months ago

Vasily42 commented 7 months ago

It seems that mpdris doesn't recognise unix socket as an argument to the host option:

ERROR [mpdris2_rs] Failed to connect to MPD server: Cannot connect to MPD server at /home/*****/.local/mpd/socket:6600. Will try again every 5 secs...
DEBUG [mpdris2_rs] Retry failed.
DEBUG [mpdris2_rs] Retry failed.
DEBUG [mpdris2_rs] Retry failed.
DEBUG [mpdris2_rs] Retry failed.

Applications like ncmpcpp will only give you access to the file system if mpd is running on the local Unix socket, otherwise you can only get tracks from the mpd database.

Vasily42 commented 7 months ago

Sorry, my bad, it turns out that mpd can be bound to a socket and an IP simultaneously.