From bfd344a571739b85ac8a287e8abda526278e2258 Mon Sep 17 00:00:00 2001 From: Nicole George Date: Fri, 21 Feb 2020 20:39:00 -0600 Subject: [PATCH] Quick fix to not finding exe and java runtime --- launch.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/launch.sh b/launch.sh index 01adb05..f0572c3 100755 --- a/launch.sh +++ b/launch.sh @@ -6,15 +6,16 @@ export WORLDSINSTALL="$WINEPREFIX/drive_c/Program Files/Worlds/WorldsPlayer by W mkdir -p $WORLDSDIR/backups $WORLDSDIR/themes -if [ ! -d "$WORLDSDIR/wine.worldslinux" ]; then +if [ -f "$WORLDSDIR/wine.worldslinux" ]; then export WINE=$(cat "$WORLDSDIR/wine.worldslinux") fi -if [ ! -d "$WORLDSDIR/wineprefix.worldslinux" ]; then +if [ -f "$WORLDSDIR/wineprefix.worldslinux" ]; then export WINEPREFIX=$(cat "$WORLDSDIR/wineprefix.worldslinux") fi -if [ ! -d "$WORLDSDIR/worlds.worldslinux" ]; then +if [ -f "$WORLDSDIR/worlds.worldslinux" ]; then export WORLDSINSTALL=$(cat "$WORLDSDIR/worlds.worldslinux") fi +cd "$WORLDSINSTALL" main() { sel=$(zenity \ @@ -66,9 +67,9 @@ launch () { WORLDSNEW="WorldsPlayer.exe" WORLDSOLD="run.exe" WORLDSLEGACY="run.bat" - if [ ! -d "$WORLDSINSTALL/$WORLDSNEW" ]; then + if [ -f "$WORLDSINSTALL/$WORLDSNEW" ]; then $WINE "$WORLDSINSTALL/$WORLDSNEW" - elif [ ! -d "$WORLDSINSTALL/$WORLDSOLD" ]; then + elif [ -f "$WORLDSINSTALL/$WORLDSOLD" ]; then $WINE "$WORLDSINSTALL/$WORLDSOLD" else $WINE "$WORLDSINSTALL/$WORLDSLEGACY"