#!/bin/sh # LuxDeLux game starter Edit this line to list where you have installed Lux set -x # Delux: installFolder="/opt/LuxDelux" # That way you can create shortcuts from wherever and they will work. ## First thing we do is check for the location of the install folder if [ -f LuxCore.jar ] then pathtofolder="." else if [ -f "LuxDelux/LuxCore.jar" ] then pathtofolder="./LuxDelux" else if [ -f "$installFolder/LuxCore.jar" ] then pathtofolder="$installFolder" else echo "The start up script could not find the location" echo "of the install folder. Edit the Lux.sh script" echo "to specify the proper install location." echo "Specify a path now and the script will try it:" read pathtofolder fi fi fi ## Now the $pathtofolder var should contain the location of the install dir ## If it doesn't, we won't be able to launch Lux echo "Lux Delux: Starting up..." # By default Lux will print output to both # stdout AND to ./Support/log.txt. # This line redirects the stdout output to /dev/null # and launches Lux in the background. $pathtofolder/linux-private-jre/bin/java -jar "$pathtofolder/LuxCore.jar" >> /dev/null &