From c5512c1d3f591ddbe35fbf15e6ebf4d0d62b2213 Mon Sep 17 00:00:00 2001 From: tretrauit Date: Thu, 2 Jun 2022 00:25:15 +0700 Subject: [PATCH] fix: add modified discord_rpc.sh for LoL with sulaunchhelper2.sh chore: update readme about discord_rpc.sh --- games/LoL/linux/README.md | 7 ++++++- games/LoL/linux/discord_rpc.sh | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 games/LoL/linux/discord_rpc.sh 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."