Quick fix to not finding exe and java runtime
This commit is contained in:
parent
7a3c791d0e
commit
bfd344a571
11
launch.sh
11
launch.sh
|
@ -6,15 +6,16 @@ export WORLDSINSTALL="$WINEPREFIX/drive_c/Program Files/Worlds/WorldsPlayer by W
|
||||||
|
|
||||||
mkdir -p $WORLDSDIR/backups $WORLDSDIR/themes
|
mkdir -p $WORLDSDIR/backups $WORLDSDIR/themes
|
||||||
|
|
||||||
if [ ! -d "$WORLDSDIR/wine.worldslinux" ]; then
|
if [ -f "$WORLDSDIR/wine.worldslinux" ]; then
|
||||||
export WINE=$(cat "$WORLDSDIR/wine.worldslinux")
|
export WINE=$(cat "$WORLDSDIR/wine.worldslinux")
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$WORLDSDIR/wineprefix.worldslinux" ]; then
|
if [ -f "$WORLDSDIR/wineprefix.worldslinux" ]; then
|
||||||
export WINEPREFIX=$(cat "$WORLDSDIR/wineprefix.worldslinux")
|
export WINEPREFIX=$(cat "$WORLDSDIR/wineprefix.worldslinux")
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$WORLDSDIR/worlds.worldslinux" ]; then
|
if [ -f "$WORLDSDIR/worlds.worldslinux" ]; then
|
||||||
export WORLDSINSTALL=$(cat "$WORLDSDIR/worlds.worldslinux")
|
export WORLDSINSTALL=$(cat "$WORLDSDIR/worlds.worldslinux")
|
||||||
fi
|
fi
|
||||||
|
cd "$WORLDSINSTALL"
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
sel=$(zenity \
|
sel=$(zenity \
|
||||||
|
@ -66,9 +67,9 @@ launch () {
|
||||||
WORLDSNEW="WorldsPlayer.exe"
|
WORLDSNEW="WorldsPlayer.exe"
|
||||||
WORLDSOLD="run.exe"
|
WORLDSOLD="run.exe"
|
||||||
WORLDSLEGACY="run.bat"
|
WORLDSLEGACY="run.bat"
|
||||||
if [ ! -d "$WORLDSINSTALL/$WORLDSNEW" ]; then
|
if [ -f "$WORLDSINSTALL/$WORLDSNEW" ]; then
|
||||||
$WINE "$WORLDSINSTALL/$WORLDSNEW"
|
$WINE "$WORLDSINSTALL/$WORLDSNEW"
|
||||||
elif [ ! -d "$WORLDSINSTALL/$WORLDSOLD" ]; then
|
elif [ -f "$WORLDSINSTALL/$WORLDSOLD" ]; then
|
||||||
$WINE "$WORLDSINSTALL/$WORLDSOLD"
|
$WINE "$WORLDSINSTALL/$WORLDSOLD"
|
||||||
else
|
else
|
||||||
$WINE "$WORLDSINSTALL/$WORLDSLEGACY"
|
$WINE "$WORLDSINSTALL/$WORLDSLEGACY"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user