Skip to content
프로젝트

소개

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

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+7
in 15 days
+14
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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)
  • Double click bridge.exe and click Install.
    • gui
  • To remove, the same process can be followed, but click Remove instead.

Note, an extra step is needed on MacOS

Lutris
  • Click on a game and select Run EXE inside Wine prefix.
    • lutris
  • The same process can be followed as in Wine.
Steam
  • Right click on the game and select Properties.
  • Under Set Launch Options, add the following:
    • bridge.sh
  • The bridge.sh script must be in the same directory as bridge.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 using Flatseal
      • Add xdg-run/discord-ipc-0, xdg-run/.flatpak/dev.vencord.Vesktop:create and xdg-run/.flatpak/com.discordapp.Discord:create under Filesystems category
        • flatseal
    • By using the terminal
      • 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
MacOS

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.sh script executable by doing: chmod +x launchd.sh
  • To install the LaunchAgent, run ./launchd.sh install and 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.

Compiling from source

  • Install the wine, gcc-mingw-w64 and make packages.
  • Open a terminal in the directory that contains this file and run make.
  • The compiled executable will be located in build/bridge.exe.

Packaging Status

Packaging status

Star History

Credits

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


관련 프로젝트 살펴보기

불러오는 중…