wine-discord-ipc-bridge icon indicating copy to clipboard operation
wine-discord-ipc-bridge copied to clipboard

Script for running it when opening a game in lutris

Open noxxy7777 opened this issue 2 years ago • 3 comments

Is there a way to do this if so can you help because I cant figure it out.

noxxy7777 avatar Aug 27 '22 19:08 noxxy7777

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.

Priton-CE avatar Feb 04 '23 11:02 Priton-CE

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. immagine

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)

sysrq-reisub avatar Apr 15 '23 17:04 sysrq-reisub

This is working for me. image 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.

Yaikava avatar May 10 '23 17:05 Yaikava