wine-discord-ipc-bridge
wine-discord-ipc-bridge copied to clipboard
Script for running it when opening a game in lutris
Is there a way to do this if so can you help because I cant figure it out.
Might be a bit late but just in case anyone faces a similar issue: The solution I came up with was just to add a Lutris game (+ -> add existing game) and just point it to the prefix of your choice. I then moved the .exe to some directory in the prefix ("Program Files" in my case) and pointed to it in the new Lutris Game, pointed the working directory to it's directory and made sure the FSync, ESync and runner settings matched.
Just need to launch it before running your game. It will stop automatically upon exiting your game. (tested with Hunternet Starfighter)
In theory you can also just create a bash script that calls your runner and runs the bridge with that runner's wine but I did not try that yet. Then that bash could just be added to the lutris startup script option. But it would also require some delay to wait for the bridge to come online.
Might be a bit late but just in case anyone faces a similar issue: The solution I came up with was just to add a Lutris game (+ -> add existing game) and just point it to the prefix of your choice. I then moved the .exe to some directory in the prefix ("Program Files" in my case) and pointed to it in the new Lutris Game, pointed the working directory to it's directory and made sure the FSync, ESync and runner settings matched.
Just need to launch it before running your game. It will stop automatically upon exiting your game. (tested with Hunternet Starfighter)
In theory you can also just create a bash script that calls your runner and runs the bridge with that runner's wine but I did not try that yet. Then that bash could just be added to the lutris startup script option. But it would also require some delay to wait for the bridge to come online.
I'm messing with that right now, trying to avoid creating a bat by running the commands directly as the lutris game executable, but it's frustrating because for some reason I cannot launch more than two executables, running the same script in a manually opened wine terminal works as intended
Also, using "command prefix" from lutris settings doesn't work if there is a game launcher which terminates (because it would also kill the process)
This is working for me.
presence.bat
start "" "Z:\opt\discord-ipc-bridge\winediscordipcbridge.exe"
timeout 2
start "" "Z:\media\games\Lutris\league-of-legends\drive_c\Riot Games\Riot Client\RiotClientServices.exe" --locale=en_US --launch-product=league_of_legends --launch-patchline=live
For some reason it does not work without the timeout.