Azn9 / JetBrains-Discord-Integration

Discord rich presence integration for all JetBrains IDEs
Apache License 2.0
147 stars 10 forks source link

[Feature Request]: Option to specify discord app location for WSL integration #180

Closed j0rgedev closed 2 months ago

j0rgedev commented 2 months ago

Describe the feature you'd like

Hello @Azn9, thank you so much for your hard work on this project! I was wondering if it might be possible to add an option to choose the Discord app from a specific folder. I'm using JetBrains IDEs within WSL, and Discord is installed on my Windows system rather than in WSL. To get the plugin working properly, it would be really helpful if I could point it to the Discord app installed on Windows.

Azn9 commented 2 months ago

Hello @j0rgedev ! Thanks for your message I appreciate it ❤️

Unfortunately, this is not possible, as WSL apps cannot access the host. I know that you can access your drives but discord listens to a specific file that cannot be found. You could however use something like https://github.com/jstarks/npiperelay to mount the \\.\pipe\discord-ipc-0 file to /run/user/{userid}/discord-ipc-0, this *should* in theory work.

This is however not something that I will (or at least could) implement in the plugin, you'll have to rely on third-party software.

j0rgedev commented 2 months ago

Thank you so much for answering. I understand and will try installing npiperelay. Keep up the good work!