Comments (4)
To clarify, is this referring to deleting the broken symlink and then restarting Discord?
Correct
It is possible that the broken symlink was created by a Flatpak installation of Discord
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!
from discord-rich-presence.
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
Flatpak Issue. (Solution?)
Snap Issue.
from discord-rich-presence.
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:
ps -lAf | grep discord
4 S bt 810175 3001 2 80 0 - 9635938 do_pol 15:22 ? 00:00:37 /usr/share/discord/Discord
0 S bt 810179 810175 0 80 0 - 55525 do_pol 15:22 ? 00:00:00 /usr/share/discord/Discord --type=zygote --no-zygote-sandbox
4 S bt 810180 810175 0 80 0 - 55525 do_wai 15:22 ? 00:00:00 /usr/share/discord/Discord --type=zygote
1 S bt 810182 810180 0 80 0 - 55525 do_pol 15:22 ? 00:00:00 /usr/share/discord/Discord --type=zygote
...
Here are the socket files it's attempting to utilize for IPC:
"/run/user/1000/discord-ipc-0"
"/run/user/1000/discord-ipc-1"
"/run/user/1000/discord-ipc-2"
"/run/user/1000/discord-ipc-3"
"/run/user/1000/discord-ipc-4"
"/run/user/1000/discord-ipc-5"
"/run/user/1000/discord-ipc-6"
"/run/user/1000/discord-ipc-7"
"/run/user/1000/discord-ipc-8"
"/run/user/1000/discord-ipc-9"
And that directory shows the socket file as existing,
find /run/user/1000/ | grep discord
/run/user/1000/discord-ipc-0
/run/user/1000/snap.discord
/run/user/1000/snap.discord/.org.chromium.Chromium.ZzV6Er
/run/user/1000/snap.discord/.org.chromium.Chromium.ZzV6Er/discord1_2.png
/run/user/1000/snap.discord/discord-ipc-0
/run/user/1000/snap.discord/.org.chromium.Chromium.kowpPo
/run/user/1000/snap.discord/.org.chromium.Chromium.kowpPo/SS
...
But it's a broken symlink!
ls -lA /run/user/1000/discord-ipc-0
lrwxrwxrwx 1 bt bt 55 Oct 18 15:47 /run/user/1000/discord-ipc-0 -> /run/user/1000/app/com.discordapp.Discord/discord-ipc-0
ls -lA /run/user/1000/app/com.discordapp.Discord/discord-ipc-0
ls: cannot access '/run/user/1000/app/com.discordapp.Discord/discord-ipc-0': No such file or directory
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.
from discord-rich-presence.
I deleted it, restarted, and everything works!
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!
from discord-rich-presence.
Related Issues (20)
- No rich presence HOT 8
- [Help] Clearing Activity HOT 4
- Is it possible to check if the client is connected? HOT 1
- I've implemented some features that might be helpful HOT 4
- Button click does not seem to work HOT 3
- Calling Activity::buttons on an empty Vec causes DiscordIpc::set_activity to silently fail HOT 3
- Useless lifetimes HOT 5
- Client connects but not showing presence HOT 2
- Generic IPC use case
- Changes to `Activity` design HOT 4
- error[E0433]: unresolved import `ipc` HOT 4
- Error when compiling to WASI HOT 1
- Add support for Snap and Flatpak installs HOT 2
- set_activity does not update the presence if the calling thread go to sleep immediately after calling set_activity HOT 1
- Rich presence automatically disappears after a minute HOT 3
- Button Links not working on MacOS HOT 3
- What is this error? HOT 7
- Dynamic LargeImage HOT 2
- Unhandleable SIGPIPE when sending activity to closed client HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-rich-presence.