-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't connect to the Discord IPC socket on Ubuntu 22.04 #23
Comments
Are you running a flatpak or snap version of discord by any chance? because they're known to to be problematic with sockets since they're contained/sandboxed |
Thanks for the info, @Rayrsn ! I've tested running the app as both an Ubuntu Snap and as Discord's provided Debian package, which I assume does not use Flatpak. Both of them are failing to perform IPC. I can see why the Snap package isn't working, but I'm not sure what's up with the Debian package. Here's the process running as installed from a deb:
Here are the socket files it's attempting to utilize for IPC:
And that directory shows the socket file as existing,
But it's a broken symlink!
Not sure what happened here or what app caused this state. I deleted it, restarted, and everything works! Edit: Not sure where the broken symlink came from, or if this is your library's responsibility or opportunity to ameliorate. |
To clarify, is this referring to deleting the broken symlink and then restarting Discord? In any case, I can tell you that the library does not create symlinks at any point, it only looks for open pipes under the given paths. It is possible that the broken symlink was created by a Flatpak installation of Discord, and wasn't overwritten by the Debian package. Sorry for the late response! |
Correct
It was probably the Snap version of Discord that did this. I used a fresh Ubuntu system and confirmed that I only installed and ran Ubuntu's Snap and Discord's own .deb. This is a Snap problem and there's nothing for you to do. I'll close the issue. Thanks for the help! |
This appears to be the same issue as #2
I'm running this on vanilla Ubuntu 22.04 and am receiving "Couldn't connect to the Discord IPC socket".
Desktop Discord client version:
rustc 1.64.0
discord-rich-presence = "0.2.3"
Linux 5.15.0-48-generic #54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
I'll be happy to provide more details.
The text was updated successfully, but these errors were encountered: