blob: 93562df152bb5b751f4e841be240e8a80054f7d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
export WINEPREFIX="$HOME/.local/share/wineprefixes/legion+/wineprefix"
export WINEDEBUG=-all
declare -a args
for arg; do
if [[ "${arg:0:1}" = "-" ]]; then
args+=("${arg/#-//}")
else
args+=("$(winepath -w "$arg")")
fi
done
wine $HOME/.local/share/wineprefixes/legion+/LegionPlus.exe "${args[@]}"
EXIT=$?
if [[ $EXIT -ne 0 ]]; then
echo "Error: Legion+ failed to launch!"
echo -e "If Legion+ didn't start, you should try deleting your Legion+ Wine prefix and restart:"
echo "rm -dr ~/.local/share/wineprefixes/legion+/wineprefix"
exit $EXIT
fi
|