aboutsummaryrefslogtreecommitdiff
path: root/package/linux/MultiMC
diff options
context:
space:
mode:
Diffstat (limited to 'package/linux/MultiMC')
-rwxr-xr-xpackage/linux/MultiMC11
1 files changed, 7 insertions, 4 deletions
diff --git a/package/linux/MultiMC b/package/linux/MultiMC
index 235d17c5..6e77a632 100755
--- a/package/linux/MultiMC
+++ b/package/linux/MultiMC
@@ -1,9 +1,12 @@
#!/bin/sh
# Basic start script for running MultiMC with the libs packaged with it.
-MMC_DIR=$(dirname "$0")
+MMC_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "${MMC_DIR}"
+echo "MultiMC Dir: ${MMC_DIR}"
+
+export LD_LIBRARY_PATH="${MMC_DIR}/bin":$LD_LIBRARY_PATH
+export QT_PLUGIN_PATH="${MMC_DIR}/plugins"
+export QT_FONTPATH="${MMC_DIR}/fonts"
+exec ${MMC_DIR}/bin/MultiMC -d ${MMC_DIR} $@
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./lib"
-export QT_PLUGIN_PATH=$QT_PLUGIN_PATH:"."
-exec ./bin/MultiMC