summarylogtreecommitdiffstats
path: root/PlayOnLinux.sh
blob: 0ae1b310c9ddcfb97208354a67a42740f771d822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

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 vars?
# Note: Java version can be sourced with this one liner:
# IFS=\" read -r _ version _ < <(java -version 2>&1); printf %s\\n "$version