Simple bridge that allows you to use Discord Rich Presence with Wine games/software.
Works by running a small program in the background that creates a named pipe \\.\pipe\discord-ipc-0
inside the prefix and forwards all data to the pipe /run/user/1000/discord-ipc-0
.
This bridge takes advantage of the Windows service implementation in Wine, eliminating the need to manually run any programs.
Installation will copy itself to C:\windows\bridge.exe
and create a Windows service.
Logs are stored in C:\windows\logs\bridge.log
.
bridge.exe
and click Install
.
Remove
instead.Note, an extra step is needed on MacOS
Run EXE inside Wine prefix
.
Properties
.Set Launch Options
, add the following:
bridge.sh
script must be in the same directory as bridge.exe
./run/user/1000/discord-ipc-0
file.
xdg-run/discord-ipc-0
under Filesystems
category
flatpak override --filesystem=xdg-run/discord-ipc-0 <flatpak app name>
flatpak override --user --filesystem=xdg-run/discord-ipc-0
The steps for MacOS are almost the same, but due to the way $TMPDIR
works, you will have to install a LaunchAgent.
launchd.sh
script executable by doing: chmod +x launchd.sh
./launchd install
and to remove it simply run ./launchd remove
.The script will add a LaunchAgent to your user, that will symlink the $TMPDIR
directory to /tmp/rpc-bridge/tmpdir
.
Note: You will need to launch the bridge.exe
file manually in Wine at least once for it to register and launch automatically the next time.
wine
, gcc-mingw-w64
and make
packages.make
.build/bridge.exe
.This project is inspired by wine-discord-ipc-bridge.