{"id":23862445,"url":"https://github.com/enderice2/rpc-bridge","last_synced_at":"2025-04-09T09:05:35.763Z","repository":{"id":199999559,"uuid":"704294753","full_name":"EnderIce2/rpc-bridge","owner":"EnderIce2","description":"Enable Rich Presence between your Wine applications and the native Discord client on Linux and macOS.","archived":false,"fork":false,"pushed_at":"2025-04-09T03:38:29.000Z","size":7789,"stargazers_count":82,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T04:27:05.270Z","etag":null,"topics":["c","discord","discord-rpc","linux","linux-gaming","lutris","mac-gaming","macos","mingw","rich-presence","steam","wine","winehq"],"latest_commit_sha":null,"homepage":"https://enderice2.github.io/rpc-bridge/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EnderIce2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-13T00:53:51.000Z","updated_at":"2025-04-09T03:38:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7d1b9ca-9603-4008-a28d-91c1734825f9","html_url":"https://github.com/EnderIce2/rpc-bridge","commit_stats":null,"previous_names":["enderice2/rpc-bridge"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnderIce2%2Frpc-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnderIce2%2Frpc-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnderIce2%2Frpc-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnderIce2%2Frpc-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnderIce2","download_url":"https://codeload.github.com/EnderIce2/rpc-bridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","discord","discord-rpc","linux","linux-gaming","lutris","mac-gaming","macos","mingw","rich-presence","steam","wine","winehq"],"created_at":"2025-01-03T07:11:10.840Z","updated_at":"2025-04-09T09:05:35.741Z","avatar_url":"https://github.com/EnderIce2.png","language":"C","readme":"# Discord RPC Bridge for Wine\n\n![GitHub License](https://img.shields.io/github/license/EnderIce2/rpc-bridge?style=for-the-badge)\n![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/EnderIce2/rpc-bridge/total?style=for-the-badge)\n![GitHub Release](https://img.shields.io/github/v/release/EnderIce2/rpc-bridge?style=for-the-badge)\n\nSimple bridge that allows you to use Discord Rich Presence with Wine games/software.\n\nWorks by running a small program in the background that creates a [named pipe](https://learn.microsoft.com/en-us/windows/win32/ipc/named-pipes) `\\\\.\\pipe\\discord-ipc-0` inside the prefix and forwards all data to the pipe `/run/user/1000/discord-ipc-0`.\n\nThis bridge takes advantage of the Windows service implementation in Wine, eliminating the need to manually run any programs.\n\n---\n\n## Installation \u0026 Usage\n\nInstallation will copy itself to `C:\\windows\\bridge.exe` and create a Windows service.  \nLogs are stored in `C:\\windows\\logs\\bridge.log`.\n\n#### Installing inside a prefix\n\n##### Wine (~/.wine)\n\n- Double click `bridge.exe` and click `Install`.\n    - ![gui](docs/assets/gui.png)\n- To remove, the same process can be followed, but click `Remove` instead.\n\n*Note, an [extra step](https://github.com/EnderIce2/rpc-bridge?tab=readme-ov-file#macos) is needed on MacOS*\n\n##### Lutris\n\n- Click on a game and select `Run EXE inside Wine prefix`.\n    - ![lutris](docs/assets/lutris.png)\n- The same process can be followed as in Wine.\n\n##### Steam\n\n- Right click on the game and select `Properties`.\n- Under `Set Launch Options`, add the following:\n    - ![bridge.sh](docs/assets/steam_script.png \"Set Launch Options to the path of the bridge.sh\")\n- The `bridge.sh` script must be in the same directory as `bridge.exe`.\n\n#### If you use Flatpak\n\n- 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.\n\t- ##### By using [Flatseal](https://flathub.org/apps/details/com.github.tchx84.Flatseal)\n\t\t- Add `xdg-run/discord-ipc-0` under `Filesystems` category\n\t\t\t- ![flatseal](docs/assets/flatseal_permission.png)\n\t- ##### By using the terminal\n\t\t- Per application\n\t\t\t- `flatpak override --filesystem=xdg-run/discord-ipc-0 \u003cflatpak app name\u003e`\n\t\t- Globally\n\t\t\t- `flatpak override --user --filesystem=xdg-run/discord-ipc-0`\n\n##### MacOS\n\nThe steps for MacOS are almost the same, but due to the way `$TMPDIR` works, you will have to install a **LaunchAgent**.\n\n- Download the latest build from the [releases](https://github.com/EnderIce2/rpc-bridge/releases)\n- Open the archive and make the `launchd.sh` script executable by doing: `chmod +x launchd.sh`\n- To **install** the LaunchAgent, run `./launchd install` and to **remove** it simply run `./launchd remove`.\n\nThe script will add a LaunchAgent to your user, that will symlink the `$TMPDIR` directory to `/tmp/rpc-bridge/tmpdir`.\n\n*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.*\n\n## Compiling from source\n\n- Install the `wine`, `gcc-mingw-w64` and `make` packages.\n- Open a terminal in the directory that contains this file and run `make`.\n- The compiled executable will be located in `build/bridge.exe`.\n\n## Credits\n\nThis project is inspired by [wine-discord-ipc-bridge](https://github.com/0e4ef622/wine-discord-ipc-bridge).\n\n---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenderice2%2Frpc-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenderice2%2Frpc-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenderice2%2Frpc-bridge/lists"}