JakeStanger / mpd-discord-rpc

Rust application which displays your currently playing song / album / artist from MPD in Discord using Rich Presence.
https://crates.io/crates/mpd-discord-rpc
MIT License
92 stars 18 forks source link

Failed to connect IoError message: "No such file or directory" #174

Open nishimi-ya opened 1 day ago

nishimi-ya commented 1 day ago
 mpd-discord-rpc          
2024-12-01T14:26:30.735370Z  INFO connect: mpd_protocol::connection: connected successfully version="0.23.5"
2024-12-01T14:26:30.735427Z  INFO mpd_utils::persistent_client: Connected to '127.0.0.1:6600'
2024-12-01T14:26:30.747349Z ERROR discord_presence::connection::manager: Failed to connect: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
2024-12-01T14:26:35.747596Z ERROR discord_presence::connection::manager: Failed to connect: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })

Why is that happen? the error code is unclear of what's the missing file/directory. Using equicord client in linux.

JakeStanger commented 1 day ago

The program connects to the Discord RPC socket. If your custom client doesn't run the server it won't provide the socket, and the file won't exist