my fault again... I'm not good copy-pasting my own code anymore...
replace the Play_LoL.sh content by this one:
Code: Select all
#!/bin/bash
export WINEPREFIX=$HOME/LoL_wine-1.5.5/LoL_Prefix #wineprefix location
WINE=$HOME/LoL_wine-1.5.5/bin/wine #location of wine executable
cd $WINEPREFIX/drive_c/Riot\ Games/League\ of\ Legends/RADS/system/
$WINE "rads_user_kernel.exe" run lol_launcher $(ls ../projects/lol_launcher/releases/) LoLLauncher.exe &
loltask_instance=$(ps -A | grep loltask)
if [ ! "$loltask_instance" ]; then
gksu loltask &
else
echo "loltask is already started. You do not want it to be started again."
fi