summarylogtreecommitdiffstats
path: root/PlayOnLinux.sh
diff options
context:
space:
mode:
authorprofessorkaos642016-12-26 14:06:26 -0500
committerprofessorkaos642016-12-26 14:06:26 -0500
commitd64796d8146b2b65868140985ea619a63efdc235 (patch)
tree1e974a84f98a02d87ded243d72123d1fc3190b66 /PlayOnLinux.sh
parentc80eff15ccf0e902079ffbe2c5cac204fce3f11a (diff)
downloadaur-d64796d8146b2b65868140985ea619a63efdc235.tar.gz
add some comments to launch script
Diffstat (limited to 'PlayOnLinux.sh')
-rwxr-xr-xPlayOnLinux.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/PlayOnLinux.sh b/PlayOnLinux.sh
index 719c33efc08..c08a442ef13 100755
--- a/PlayOnLinux.sh
+++ b/PlayOnLinux.sh
@@ -3,10 +3,13 @@
POL_HOME=/opt/playonlinux5
CLASSPATH=${CLASSPATH}:$POL_HOME/lib/*
+# Allow either openjdk java or Oracle java to be used
+
if [[ $(archlinux-java get | cut -d "-" -f2) -ge 8 ]]; then
export JAVA_HOME=$(archlinux-java get)
else
export JAVA_HOME=$(ls /usr/lib/jvm/java-{8,9}-*/bin/javac 2>/dev/null | cut -d "/" -f-5 | head -1)
fi
+# Start PlayOnLinux
java -classpath "$CLASSPATH" com.playonlinux.javafx.JavaFXApplication "$@"