I made this for bridging the Discord rich presence from my qemu/kvm machine to host where my discord was
running but in theory it should work with any windows and linux machine.
It works by first creating pipe for discord to \\.\pipe\discord-ipc-0
in windows(guest) then
communicating with the socat receiver in linux(host) where socat writes it into /run/user/1000/discord-ipc-0
.
You need socat in your host machine and either the prepackaged exe from releases or this script and python intepreter in your guest.
- Do one of these in host:
a) Runsocat TCP-LISTEN:<port>,reuseaddr,fork,max-children=1 UNIX-CONNECT:/run/user/1000/discord-ipc-0
in your host
b) Edit and run the rpc script from this repo in your host - Edit config.cfg according to your ip address and port
- Do one of these in guest:
a) Run the connect.py with python intepreter
b) Run the connect.exe from releases - Launch your game.