summarylogtreecommitdiffstats
path: root/hmcl-launch-script
blob: f5a60561f9a2195d59e15dbd297e5c049a0b356e (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

if [[ "$1" != "-p" ]]; then
    WORKDIR=${XDG_CONFIG_HOME:-$HOME/.config}/hmcl
    mkdir -p $WORKDIR
    cd $WORKDIR
    ls hmcl.json > /dev/null 2>&1 || touch hmcl.json
fi

exec /usr/bin/java "$@" -jar "/usr/share/java/hmcl/hmcl.jar"