discord-rpc-csharp icon indicating copy to clipboard operation
discord-rpc-csharp copied to clipboard

[BUG] Incorrect path for linux (linux mint distro)

Open SineVector241 opened this issue 7 months ago • 0 comments

Describe the bug So by default, the named pipe is set to /run/user/1000/... or /run/user/1000/snap.discord/.... However on the linux mint distro, I installed discord via flatpack (which I don't know if it affects things that much). So whenever the RPC library tries to connect, it does not try the path /run/user/1000/com.discordapp.Discord/... or /run/user/1000/.flatpack/com.discordapp.Discord/xdg-run/...

To Reproduce Steps to reproduce the behavior: I have no idea how to exactly reproduce this behaviour but I will say that I have discord installed via the Software Manager of the linux mint cinnamon edition which uses the Flathub version.

Image

Expected behavior A connection attempt at one of the paths below for the linux OS. /run/user/1000/com.discordapp.Discord/... /run/user/1000/.flatpack/com.discordapp.Discord/xdg-run/...

Desktop (please complete the following information):

  • OS: Linux Mint 22.1 Cinnamon Edition Version 6.4.8
  • Framework: .NET 9.0 Avalonia Shared Project.
  • Library Version: 1.2.1.24

Additional context This image is just to show where the IPC should be accessed. Image

Logs

INFO: Attempting a new connection
INFO: RPC Connection Started
INFO: Attempting to connect to '/run/user/1000/discord-ipc-0'
ERR : Failed connection to /run/user/1000/discord-ipc-0. The operation has timed out.
WARN: Tried to close a already closed pipe.
INFO: Attempting to connect to '/run/user/1000/snap.discord/discord-ipc-0'
ERR : Failed connection to /run/user/1000/snap.discord/discord-ipc-0. The operation has timed out.
WARN: Tried to close a already closed pipe.
INFO: Attempting to connect to '/run/user/1000/discord-ipc-1'
ERR : Failed connection to /run/user/1000/discord-ipc-1. The operation has timed out.
WARN: Tried to close a already closed pipe.
INFO: Attempting to connect to '/run/user/1000/snap.discord/discord-ipc-1'
ERR : Failed connection to /run/user/1000/snap.discord/discord-ipc-1. The operation has timed out.
WARN: Tried to close a already closed pipe.
INFO: Attempting to connect to '/run/user/1000/discord-ipc-2'
ERR : Failed connection to /run/user/1000/discord-ipc-2. The operation has timed out.
WARN: Tried to close a already closed pipe.
INFO: Attempting to connect to '/run/user/1000/snap.discord/discord-ipc-2'
ERR : Failed connection to /run/user/1000/snap.discord/discord-ipc-2. The operation has timed out.
WARN: Tried to close a already closed pipe.
INFO: Attempting to connect to '/run/user/1000/discord-ipc-3'
ERR : Failed connection to /run/user/1000/discord-ipc-3. The operation has timed out.
WARN: Tried to close a already closed pipe.

This keeps going on...

SineVector241 avatar Apr 23 '25 05:04 SineVector241