Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Enable Rich Presence between your Wine applications and the native Discord client on Linux and macOS.

License

NotificationsYou must be signed in to change notification settings

EnderIce2/rpc-bridge

Repository files navigation

GitHub LicenseGitHub 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 anamed 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 toC:\windows\bridge.exe and create a Windows service.
Logs are stored inC:\windows\logs\bridge.log.

Installing inside a prefix

Wine (~/.wine)
  • Double clickbridge.exe and clickInstall.
    • gui
  • To remove, the same process can be followed, but clickRemove instead.

Note, anextra step is needed on MacOS

Lutris
  • Click on a game and selectRun EXE inside Wine prefix.
    • lutris
  • The same process can be followed as in Wine.
Steam
  • Right click on the game and selectProperties.
  • UnderSet Launch Options, add the following:
    • bridge.sh
  • Thebridge.sh script must be in the same directory asbridge.exe.

If you use Flatpak

  • 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-0 file.
    • By usingFlatseal
      • Addxdg-run/discord-ipc-0 underFilesystems category
        • flatseal
    • By using the terminal
      • Per application
        • flatpak override --filesystem=xdg-run/discord-ipc-0 <flatpak app name>
      • Globally
        • flatpak override --user --filesystem=xdg-run/discord-ipc-0
MacOS

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

  • Download the latest build from thereleases
  • Open the archive and make thelaunchd.sh script executable by doing:chmod +x launchd.sh
  • Toinstall the LaunchAgent, run./launchd install and toremove 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 thebridge.exe file manually in Wine at least once for it to register and launch automatically the next time.

Compiling from source

  • Install thewine,gcc-mingw-w64 andmake packages.
  • Open a terminal in the directory that contains this file and runmake.
  • The compiled executable will be located inbuild/bridge.exe.

Credits

This project is inspired bywine-discord-ipc-bridge.



[8]ページ先頭

©2009-2025 Movatter.jp