Enabling Discord RPC for WINE Games
Since Wine doesn’t offer a native “native” interface for games running under it to connect to the Discord Rich Presence listener on Linux, here’s a short guide on how to make RPC work.
I used this method on Arch Linux, though it should work the same on all other distros too.
How-to
- Download this tarball by Marc3842h
- Extract its content to
/opt/discord-rpc
- Make sure you have the bin32 and the bin64 directories in
/opt/discord-rpc
- Open a terminal and append the locations of
bin32
andbin64
directories to theWINEDLLPATH
environment variable using the following commandexport WINEDLLPATH=$WINEDLLPATH:/opt/discord-rpc/bin64:/opt/discord-rpc/bin32
- Run winetricks/protontricks, select your wine prefix (default prefix if using protontricks), and run winecfg
- Head to the libraries tab, and add a new override for library by typing in
discord-rpc
and clicking add. Hit Apply, and then OK - Run your game the way you usually would, and RPC should be working now