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.
- Double click
bridge.exeand clickInstall. - To remove, the same process can be followed, but click
Removeinstead.
Note, an extra step is needed on MacOS
- Right click on the game and select
Properties. - Under
Set Launch Options, add the following: - The
bridge.shscript must be in the same directory asbridge.exe.
- If you are running Steam, Lutris, etc in a Flatpak, you will need to allow the bridge to access the
/run/user/1000/discord-ipc-0file.-
By using Flatseal
-
- Per application
flatpak override --filesystem=xdg-run/discord-ipc-0 --filesystem=xdg-run/.flatpak/dev.vencord.Vesktop:create --filesystem=xdg-run/.flatpak/com.discordapp.Discord:create <flatpak app name>
- Globally
flatpak override --user --filesystem=xdg-run/discord-ipc-0 --filesystem=xdg-run/.flatpak/dev.vencord.Vesktop:create --filesystem=xdg-run/.flatpak/com.discordapp.Discord:create
- Per application
-
The steps for MacOS are almost the same, but due to the way $TMPDIR works, you will have to install a LaunchAgent.
- Download the latest build from the releases
- Open the archive and make the
launchd.shscript executable by doing:chmod +x launchd.sh - To install the LaunchAgent, run
./launchd.sh installand to remove it simply run./launchd.sh 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.
More details on how to install the LaunchAgent can be found in the documentation.
- Install the
wine,gcc-mingw-w64andmakepackages. - Open a terminal in the directory that contains this file and run
make. - The compiled executable will be located in
build/bridge.exe.
This project is inspired by wine-discord-ipc-bridge.



