summarylogtreecommitdiffstats
path: root/hmcl-launch-script
diff options
context:
space:
mode:
authorRowisi2020-04-14 20:17:34 +0100
committerRowisi2020-04-14 20:17:34 +0100
commit562317a7b4fe1ef95bfa242d50550468e4f84c36 (patch)
tree42992965611966db422c2bbcdff1b1821024b3ab /hmcl-launch-script
downloadaur-562317a7b4fe1ef95bfa242d50550468e4f84c36.tar.gz
Initial Commit: Version 3.3.162
Diffstat (limited to 'hmcl-launch-script')
-rwxr-xr-xhmcl-launch-script9
1 files changed, 9 insertions, 0 deletions
diff --git a/hmcl-launch-script b/hmcl-launch-script
new file mode 100755
index 000000000000..4593acf50e68
--- /dev/null
+++ b/hmcl-launch-script
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+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-bin/hmcl-bin.jar" "$@"