atom-discord: Rich Presence is not showing - Ubuntu 18.04.1

Please use this template only if issue related to Error / Unexpected behavior
Please use suitable tags

Step to reproduce

  1. Install atom-discord
  2. Add atom in the game activity in Discord.

Stacktrace

2 errors occure in ctrl+shift+i in Discord. It’s the same error that occure twice

Error: Error 1 when fetching info on 10672
    at 26b013b….js:40
e.(anonymous function) @ 26b013b….js:119

(link address) https://discordapp.com/assets/26b013b91aadec737cbd.js

Information

Platform: Ubuntu 18.04.1 LTS x86_64 Kernel: 4.15.0-36-generic Atom: apm 2.1.1 npm 6.2.0 node 8.9.3 x64 atom 1.31.2 python 3.6.5 git 2.17.1 Discord: couldn’t find a version number but it’s latest update is 16 Oct 2018

Package Version: 3cc031c 10 days ago link

Non-Core Packages

I supose this is other installed packages in atom? Else ignore this.

atom-live-server 2.3.0
busy-signal 1.4.3
file-icons 2.1.25
ftp-remote-edit 0.12.18
highlight-selected 0.14.0
intentions 1.1.5
language-htaccess 0.2.0
language-latex 1.2.0
language-markdown 0.27.0
latex-autocomplete 1.1.1
linter 2.2.0
linter-eslint 8.4.1
minimap 4.29.9
minimap-pigments 0.2.2
pigments 0.40.2

(disabled)
emmet 2.4.3
linter-jscs 4.1.3
linter-jshint 3.1.8
linter-sass-lint 1.8.3
linter-ui-defualt 1.7.1

What have I done?

I have followed the guide provided in the readme.md. I have tried all 3 metodes of installing atom-discord, via the in atom package manager, via terminal with apm and I’ve installed it via source, none have worked.

I did noticed however everytime i close atom, discord doesn’t find it again. As it is launced with a new PID. an example. (You can find this when hovering over the “last played 22 minutes ago” in game activity section)

First time adding Atom to the game activity /SNAP/ATOM/202/USR/SHARE/ATOM/ATOM --EXECUTED-FROM=/HOME/APOLLO --PID=10656

After rebooting Atom and adding it again /SNAP/ATOM/202/USR/SHARE/ATOM/ATOM --EXECUTED-FROM=/HOME/APOLLO --PID=14133

“APOLLO” here being my pc username.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

It means that discord-rpc could not find paths. ((prefix)/discord-ipc-0, 1, …) I don’t know why discord-rpc failed to connect to discord, but I have found an issue maybe relevant to you (discordjs/RPC#36). Please follow these steps and run atom in terminal.

in ~/.atom/packages/atom-discord/node_modules/discord-rpc/src/transports/IPC.js: Change line 125 to:

return `${prefix.replace(/\/$/, '')}/snap.discord/discord-ipc-${id}`;

Also, please double check discord is running while turning on atom. In most cases, message that could not connect means discord is not running.