diff --git a/games/LoL/linux/README.md b/games/LoL/linux/README.md index 04be8fb..f692496 100644 --- a/games/LoL/linux/README.md +++ b/games/LoL/linux/README.md @@ -46,4 +46,9 @@ chmod +x garena_wrapper.sh ## [`discord_rpc.sh`](../../../apps/Lutris#discord_rpcsh) + 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 +``` diff --git a/games/LoL/linux/discord_rpc.sh b/games/LoL/linux/discord_rpc.sh new file mode 100755 index 0000000..2451458 --- /dev/null +++ b/games/LoL/linux/discord_rpc.sh @@ -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."