discordjs / RPC

A simple RPC client for Discord
MIT License
474 stars 192 forks source link

Lib does not work on Ubuntu LTS 16.04 #24

Closed StrikerFRFX closed 6 years ago

StrikerFRFX commented 6 years ago

Trying to use crawl's vscode extension and it doesn't work. Crawl suggested it was because of the lib, any advice?

ckiee commented 6 years ago

I'm using maxerbox's vscode-discord extenstion, and what I did is go to this path /home/YOUR USERNAME/.vscode/extensions/maxerbox.vscode-discord-1.0.2/node_modules/discord-rpc/src/transports then I opened IPC.js - went to the getIPCPath function (line 102 for me) and made it always return "/run/user/1000/discord-ipc-0": This is what it looks like: image

And it has been working perfectly for me since I did that.

StrikerFRFX commented 6 years ago

@RONTheCookie thanks my dude, I'll try this solution when I can thanks.

ckiee commented 6 years ago

:ok_hand:

StrikerFRFX commented 6 years ago

Won't be closing this until I know it works also, but thanks :)

StrikerFRFX commented 6 years ago

Works

ckiee commented 6 years ago

Great 👌