HelloWorld017 / atom-discord

Integrate with Discord and show Rich Presence information.
https://atom.io/packages/atom-discord
MIT License
105 stars 28 forks source link

v1.2.0 failed to install #9

Closed ghost closed 6 years ago

ghost commented 6 years ago

When I tried to install v1.2.0 it failed

screenshot from 2017-11-25 18-57-41

and


yamboy1@computer:~$ apm install atom-discord
Installing atom-discord to /home/yamboy1/.atom/packages ✗
undefined
`
HelloWorld017 commented 6 years ago

Could you try $ git clone https://github.com/HeloWorld017/atom-discord.git && cd atom-discord/ && npm i && apm link ?

ghost commented 6 years ago

It installs, I haven't checked whether it works in discord yet

ghost commented 6 years ago

However it give me this error:

Set up discord RPC.
{ Error: connect ENOENT /run/user/1001/snap.atom/discord-ipc-0
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'connect',
  address: '/run/user/1001/snap.atom/discord-ipc-0' }
ghost commented 6 years ago

And the Rich Presence still doesn't work

HelloWorld017 commented 6 years ago

Hmm... I think it may be error of getting IPC Path of discord-rpc

function getIPCPath() {
  if (process.platform === 'win32')
    return '\\\\?\\pipe\\discord-ipc-0';
  const env = process.env;
  const prefix = env.XDG_RUNTIME_DIR || env.TMPDIR || env.TMP || env.TEMP || '/tmp';
  return `${prefix.replace(/\/$/, '')}/discord-ipc-0`;
}

May be problem of env?

ghost commented 6 years ago

But it won't be that part because I'm using Linux

ghost commented 6 years ago

ENOENT means No such file or directory

ghost commented 6 years ago

NVM IT WORKS!!!!!!

I think that my discord was broken.