discord
discord copied to clipboard
Discord Rich Presence doesn't work with the Snap images
When trying to use any Discord RPC enabled application together with the Snap images of Discord the rich presence doesn't show up. As soon as you switch to the Debian package provided by Discord on their website everything works as expected.
Tested on Ubuntu 18.04 LTS with Discord Snap Version 0.0.4
Can verify this issue a month after it was originally posted. Regards.
seems related to #2 and #23
This seems to still be a problem. Could this get looked into?
@Blackop778 check the linked issues might offer some workaround for you most notable the system-observe connection
seems to work with the system-observe connection
@Blackop778 @Almighty-Alpaca @iMaxopoly can you guys try running sudo snap connect discord:system-observe
to see if it resolves the issue?
I've tested with system-observe
enabled, and this does indeed work.
It works for spotify snap <-> discord snap But it does not work for code snap <-> discord snap Maybe there is something more needed for classic snaps?
Tested also with intellij and android-studio - discord rich presence does really not work with vscode, and those two apps (works for spotify though, maybe because spotify is not classic?). Would be great if this could be somehow fixed and I think this issue needs to be re-opened CC @kenvandine
Sorry for the poke, but this issue is sadly still remaining. While the rich presence of other confined snaps like spotify can be seen in the discord snap, the connection to the vscode and intellij snaps rich presence is still not working. I would thus vote to re-open this issue
Per discord/discord-rpc the IPC uses a UNIX socket in $XDG_RUNTIME_DIR
which is unique to each statically confined snap - The reason that snaps in classic confinement work is because they use your normal $XDG_RUNTIME_DIR
, or are maybe using a different method to that library entirely(?):
- https://github.com/discord/discord-rpc/blob/963aa9f3e5ce81a4682c6ca3d136cddda614db33/src/connection_unix.cpp#L68
- https://github.com/discord/discord-rpc/blob/963aa9f3e5ce81a4682c6ca3d136cddda614db33/src/connection_unix.cpp#L31
Noticed today that the discord snap rich presence now works with this extension! 🥳 https://marketplace.visualstudio.com/items?itemName=LeonardSSH.vscord So I guess it must depend on how it is implented and from the snap side it seems to work I guess 🤷 I don't know if this actually can help you with your intellij presence extension @Almighty-Alpaca
Thanks for reporting this, everyone!
Closing this issue again, as it seems to be fixed according to @Feichtmeier 's comment. If you find apps where it's not working, please comment and we can reopen this issue!