Giter Site home page Giter Site logo

enderice2 / rpc-bridge Goto Github PK

View Code? Open in Web Editor NEW
33.0 1.0 3.0 2.81 MB

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

Home Page: https://enderice2.github.io/rpc-bridge/

License: MIT License

Makefile 1.33% C 95.35% Batchfile 0.22% Shell 3.10%
discord discord-rpc linux mingw winehq lutris steam macos

rpc-bridge's Introduction

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.
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 under Filesystems 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

On macOS, follow these instructions.

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.

Credits

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


rpc-bridge's People

Contributors

enderice2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rpc-bridge's Issues

Mac Support

It is possible to add support for Darwin systems? I may have done a mistake in setting up the bridge but I am not certain.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.