Skip to content
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

Discord RPC seems not working on Ubuntu 18.04? #213

Closed
Pythonic-Rainbow opened this issue Aug 6, 2018 · 12 comments
Closed

Discord RPC seems not working on Ubuntu 18.04? #213

Pythonic-Rainbow opened this issue Aug 6, 2018 · 12 comments

Comments

@Pythonic-Rainbow
Copy link

I installed some apps that utilizes Discord RPC.

E.g. JetBrains IDEs Discord Rich Presence Integration
Visual Studio Code Discord Rich Presence Integration

both of them seems fail to work.
screenshot from 2018-08-06 13-48-38

@m-sterling
Copy link

m-sterling commented Aug 6, 2018

The IntelliJ IDEA plugin is known to not be working. The proper issue to post on is here. It hasn't been updated for a few months so I suggest using an earlier version or forking and compiling your own that works.

Edit: Oops, nevermind, I thought you had a different issue. Can you possibly share the error log from the plugin, and have you shared this issue with the plugin developer?

@MinnDevelopment
Copy link
Contributor

MinnDevelopment commented Aug 6, 2018

I just want to point out that the plugin works perfectly fine on my Ubuntu 18.04. Make sure that neither intellij or discord are installed through snap (software center).

@msciotti
Copy link
Collaborator

msciotti commented Aug 6, 2018

^ +1 to the installed through snap comment. They do some sandboxing that messes with our filepath registration stuff.

@Vatuu
Copy link
Contributor

Vatuu commented Aug 6, 2018

I can confirm that my discord-rpc wrapper works flawlessly after we've did some major re-structuring, on UNIX and Win64/86. But macOS is still not functional. The latest version is 1.5.1.

@TsundereBug you should update.

@msciotti
Copy link
Collaborator

I'm going to close this issue if that's alright. Seems like the answer is here. If you are experiencing a different problem, please feel free to re-open.

@HelloWorld017
Copy link

discordjs/RPC#36 says that path to Discord IPC in Ubuntu 18.04 is /run/user/1000/snap.discord/discord-ipc-{Id}, not /run/user/1000/discord-ipc-{Id}.

@MinnDevelopment
Copy link
Contributor

To quote myself:

Make sure that neither intellij or discord are installed through snap (software center).

@vsimitsis
Copy link

vsimitsis commented Nov 24, 2018

Solution worked for Ubuntu 18.04 For those who want to keep the snaps installed just replace this specific file: /home/{USER}/.vscode/extensions/icrawl.discord-vscode-*.*.*/node_modules/discord-rpc/src/transports with this updated one
https://github.com/AliDeym/RPC/blob/8dbf59006ab6b43ee13004116cb13912a5d5d1f5/src/transports/IPC.js

PS: Wish i could find something similar for Phpstorm. I don't quite use Vscode :/

@officialpiyush
Copy link

Experiencing Same Issue!

OS- Ubuntu 18.04 LTS

@msciotti
Copy link
Collaborator

msciotti commented Mar 4, 2019

@ionadev is Discord installed through snap for you? The paths to create socket connections won't work, as it's not checking for the snap directory.

Lachee added a commit to Lachee/discord-rpc-csharp that referenced this issue Mar 28, 2019
This commit should hopefully fix issue #54 . Snap (on Ubuntu) will
sandbox the Discord client, breaking the pipes (see issue
discord/discord-rpc#213 ). This fix will
attempt both normal and sandboxed snap connections if running on Linux.
@officialpiyush
Copy link

@msciotti Actually I Use Discord Canary, so it wasn't installed from snap, but atom was installed with snap, when i reinstalled atom from their website, the problem was sorted!

@viktorashi
Copy link

viktorashi commented Aug 1, 2021

For anybody that it doesn't work for: I got it working, by just uninstalling vscode and installing it back,

BEWARE THOUGH, AS IT WILL DELETE ALL YOUR SETTINGS AND EXTENSIONS, IT'S GONNA BE LIKE BEFORE YOU INSTALLED IT AND WENT THROUGH THE COSTUMIZATION PROCESS, VERY ANNOYING.

  1. Uninstall VsCode
  2. Install It back Up
  3. Install the rich presence plugin again.
  4. You should be done I hope

NOT DISCORD, but Vscode,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants