tnychn / mpv-discord

🎈 A cross-platform Discord Rich Presence integration for mpv with no external dependencies.
MIT License
172 stars 14 forks source link

Could not get it working in Linux: dial unix /tmp/mpvsocket: connect: connection refused #19

Closed m-spitfire closed 2 years ago

m-spitfire commented 3 years ago

Hi there

I could not get it working in my Linux machine. I did everything according to instructions, but it doesn't seem to work. The log is like:

[discord] mpv-discord v1.6.0 by tnychn
[discord] (mpv-ipc): /tmp/mpvsocket
[discord] launched subprocess
[discord] dial unix /tmp/mpvsocket: connect: connection refused
.....
[discord] aborted subprocess

The problem probably occurs when connection is refused. I couldn't find when you log this, but I thikn this is from mpv-discord module(the backend). My configurations and stuff is all fine. Please tell me if you need any other information.

tnychn commented 3 years ago

The socket file wasn't created properly, that's why the connection is refused.

Try setting another socket path where you have read/write permissions in config (e.g. socket_path=/path/to/mpvsocket). If it still doesn't work, try setting use_static_socket_path=no in config.

m-spitfire commented 3 years ago

I have read/write permissions in /tmp. Altough, I changed it to ~/.local/share/mpv/socket, It still says connection refused.

Changing use_static_socket_path to no, resulted(i just changed socket_path too)

dial unix /home/murad/.cache/mpv/socket/mpv-discord-2998: connect: no such file or directory

If I don't change the socket_path and point it to existing static socket it will say connect: not a directory