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

set -o errexit

if [[ "${1}" != '-p' ]]; then
  WORKDIR="${XDG_CONFIG_HOME:-${HOME}/.config}/hmcl"
  mkdir -p "${WORKDIR}"
  cd "${WORKDIR}"
fi

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