fix: add modified discord_rpc.sh for LoL with sulaunchhelper2.sh
chore: update readme about discord_rpc.sh
This commit is contained in:
parent
b52d64f5f4
commit
c5512c1d3f
@ -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
|
||||
```
|
||||
|
16
games/LoL/linux/discord_rpc.sh
Executable file
16
games/LoL/linux/discord_rpc.sh
Executable 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."
|
Loading…
Reference in New Issue
Block a user