summarylogtreecommitdiffstats
path: root/HMCL.run
blob: e42543327e1ce5ed8212cea7925fe86f7764d7d2 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

if [[ "$1" != "-p" ]]; then
    WORKDIR=${XDG_CONFIG_HOME:-$HOME/.config}/hmcl
    mkdir -p $WORKDIR
    cd $WORKDIR
fi
_java=$(ls /usr/lib/jvm | grep 8-openjdk)
exec /usr/lib/jvm/$_java/jre/bin/java -jar /usr/share/hmcl/hmcl.jar