xhayper

Results 155 comments of 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. ![image](https://user-images.githubusercontent.com/46065349/180650445-6ec7ec2d-37bc-4bca-8e29-cae5c58c90ba.png)~~ 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 ![image](https://user-images.githubusercontent.com/46065349/180650820-cd3fdd68-85be-4f13-89d4-565358ad0bdf.png) `TMPDIR` is wrong here, Which might explain why people who are using `X`...

Trying this on Wayland version of plasma.

My assumption are correct. ![image](https://user-images.githubusercontent.com/46065349/180650990-6644467c-1644-4be3-ad15-d8b276f7d4e5.png)

Yup! This patch fix it! ![image](https://user-images.githubusercontent.com/46065349/180651465-69799ecf-6bb7-4390-97ce-157f30e5b268.png)

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.