xhayper
xhayper
Can you guys try installing `leonardssh/coc-discord-rpc#build-dev` version of the extenstion? It should fix this bug, if it did then i will publish it. Windows: `%appdata%\..\Local\coc\extensions` macOS: `~/.config/coc/extensions` Linux: `~/.config/coc/extensions`
Before fix: After fix: Discord IPC Path:
I gonna test this on an Arch Linux VM with KDE Plasma and SDDM.
~~Works great. ~~ Nevermind, It work without the patch.
Ah... `discord-ipc-{number}` in this case is inside `$XDG_RUNTIME_DIR/`, which we have no problem with, BUT HOWEVER  `TMPDIR` is wrong here, Which might explain why people who are using `X`...
Trying this on Wayland version of plasma.
My assumption are correct. 
Yup! This patch fix it! 
Conclusion: discord-rpc will breaks under non-x display server with coc / neovim. Why? coc / neovim set `$TMPDIR` / `$TMP` / `$TEMP` to `$TEMP_DIR/nvim**`.
Alright, I got tired of `discordjs/RPC`, I made my own fork of `discordjs/RPC` that's up to date, use typescript and can specify your own way to find the ipc path.