discord icon indicating copy to clipboard operation
discord copied to clipboard

Discord Rich Presence doesn't work with the Snap images

Open Almighty-Alpaca opened this issue 6 years ago • 10 comments

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

Almighty-Alpaca avatar Apr 27 '18 20:04 Almighty-Alpaca

Can verify this issue a month after it was originally posted. Regards.

iMaxopoly avatar May 27 '18 09:05 iMaxopoly

seems related to #2 and #23

Fuseteam avatar May 27 '18 19:05 Fuseteam

This seems to still be a problem. Could this get looked into?

nfaltermeier avatar Apr 13 '20 02:04 nfaltermeier

@Blackop778 check the linked issues might offer some workaround for you most notable the system-observe connection

Fuseteam avatar Apr 14 '20 12:04 Fuseteam

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?

Fuseteam avatar Aug 13 '20 16:08 Fuseteam

I've tested with system-observe enabled, and this does indeed work.

popey avatar Nov 03 '20 11:11 popey

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?

Feichtmeier avatar Jun 04 '22 11:06 Feichtmeier

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

Feichtmeier avatar Jun 04 '22 13:06 Feichtmeier

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

Feichtmeier avatar Sep 01 '22 14:09 Feichtmeier

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

lucyllewy avatar Sep 01 '22 16:09 lucyllewy

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

Feichtmeier avatar Aug 07 '23 22:08 Feichtmeier

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!

merlijn-sebrechts avatar Dec 02 '23 19:12 merlijn-sebrechts