EnderIce2 / rpc-bridge

Enable Rich Presence between your Wine applications and the native Discord client on Linux and macOS.
https://enderice2.github.io/rpc-bridge/
MIT License
54 stars 3 forks source link
discord discord-rpc linux lutris macos mingw rich-presence steam wine winehq

Discord RPC Bridge for Wine

GitHub License GitHub Downloads (all assets, all releases) GitHub Release

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 & Usage

Installation will copy itself to C:\windows\bridge.exe and create a Windows service.
Logs are stored in C:\windows\logs\bridge.log.

Installing inside a prefix

Wine (~/.wine)

Note, an extra step is needed on MacOS

Lutris
Steam

If you use Flatpak

MacOS

The steps for MacOS are almost the same, but due to the way $TMPDIR works, you will have to install a LaunchAgent.

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.

Compiling from source

Credits

This project is inspired by wine-discord-ipc-bridge.