summarylogtreecommitdiffstats
path: root/PlayOnLinux.sh
diff options
context:
space:
mode:
authorprofessorkaos642016-11-18 13:48:14 -0500
committerprofessorkaos642016-11-18 13:48:14 -0500
commitcc83985fe40d6c04bbf7ee2b3d74bd8cf338404d (patch)
treee0dbec17a8016da15e7d24221d4ed685542664bc /PlayOnLinux.sh
parent01d776ad8dcd3a02ecf7a9363fca167a1214650e (diff)
downloadaur-cc83985fe40d6c04bbf7ee2b3d74bd8cf338404d.tar.gz
rework launch script
Diffstat (limited to 'PlayOnLinux.sh')
-rwxr-xr-xPlayOnLinux.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/PlayOnLinux.sh b/PlayOnLinux.sh
new file mode 100755
index 00000000000..9cbc1091bb0
--- /dev/null
+++ b/PlayOnLinux.sh
@@ -0,0 +1,11 @@
+POL_HOME=/opt/playonlinux5
+CLASSPATH=${CLASSPATH}:$POL_HOME/lib/*
+
+# Ensure we are using the right java env
+# Don't necessarily force default Java 8, as it is not the default for Arch Linux right now
+# This handles users with Java 7 and 8
+export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
+
+java -classpath "$CLASSPATH" com.playonlinux.app.PlayOnLinuxApp "$@"
+
+# Unset