fix: add modified discord_rpc.sh for LoL with sulaunchhelper2.sh

chore: update readme about discord_rpc.sh
This commit is contained in:
tretrauit 2022-06-02 00:25:15 +07:00
parent b52d64f5f4
commit c5512c1d3f
No known key found for this signature in database
GPG Key ID: 862760FF1903319E
2 changed files with 22 additions and 1 deletions

View File

@ -46,4 +46,9 @@ chmod +x garena_wrapper.sh
## [`discord_rpc.sh`](../../../apps/Lutris#discord_rpcsh) ## [`discord_rpc.sh`](../../../apps/Lutris#discord_rpcsh)
+ This script will bridge Discord RPC from LoL prefix to your linux Discord. + This script will bridge Discord RPC from LoL prefix to your linux Discord.
+ Click on the script name to get more info & installation. > Note: The script in current directory [`discord_rpc.sh`](./discord_rpc.sh) is modified from the script mentioned above to work properly with `sulaunchhelper2.sh`,
the installation is the same **except** when installing the script itself, execute this instead:
```sh
curl -OL https://gitlab.com/tretrauit/scripts/-/raw/main/games/LoL/linux/discord_rpc.sh
chmod +x discord_rpc.sh
```

16
games/LoL/linux/discord_rpc.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Launch winediscordipcbridge.exe automatically.
# debug wine version and prefix"
echo "wine: $WINE"
echo "prefix: $WINEPREFIX"
echo "Waiting for LeagueClientUx.exe to start..."
until _=$(pidof LeagueClientUx.exe)
do
sleep 1
done
echo "Launching bridge..."
$WINE ./winediscordipcbridge.exe
echo "Bridge closed."