summarylogtreecommitdiffstats
path: root/portablemc
blob: b2e31dfd38422aaea35ef95c7aa0dc8462d771d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
cd /usr/lib/portablemc

[ -d "$HOME/.minecraft" ] && portablemc_dir="$HOME/.minecraft" || portablemc_dir="${XDG_DATA_HOME:-$HOME/.local/share}/portablemc/"

# Uncomment to default to using system java
#args=""
#for i in "$@"; do
#	if [ "$i" = "start" ]; then
#		args="$args $i --jvm $(which java)"
#	else
#		args="$args $i"
#	fi
#done
#
#python -m portablemc --main-dir "$portablemc_dir" --work-dir "$portablemc_dir" $args

python -m portablemc --main-dir "$portablemc_dir" --work-dir "$portablemc_dir" "$@"