Skip to content

Commit

Permalink
Fixed Hanging of Battle.net
Browse files Browse the repository at this point in the history
~Removed pkill command and allowed window to pop up which should allow installation and sign in
  • Loading branch information
moraroy authored Jun 8, 2023
1 parent 3525f9e commit ce5b125
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions NonSteamLaunchers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1650,20 +1650,11 @@ if [[ $options == *"Battle.net"* ]]; then
fi

# Run the BATTLE file using Proton with the /passive option
echo "Running BATTLE file using Proton with the /passive option"
"$STEAM_RUNTIME" "$proton_dir/proton" run "$battle_file" Battle.net-Setup.exe --lang=enUS --installpath="C:\Program Files (x86)\Battle.net" &

while true; do
if pgrep -f "Battle.net.exe" > /dev/null; then
pkill -f "Battle.net.exe"
break
fi
sleep 1
done
echo "Running BATTLE file using Proton with the /passive option"
"$STEAM_RUNTIME" "$proton_dir/proton" run "$battle_file" Battle.net-Setup.exe --lang=enUS --installpath="C:\Program Files (x86)\Battle.net"
fi
fi


wait

echo "80"
Expand Down

0 comments on commit ce5b125

Please sign in to comment.