Skip to content

Instantly share code, notes, and snippets.

@lae
Forked from jlitewski/ftb-launcher-script.sh
Last active December 15, 2015 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lae/5223391 to your computer and use it in GitHub Desktop.
Save lae/5223391 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Check to see if the directory exists
if [ ! -d $HOME/.ftb ]
then
mkdir $HOME/.ftb
fi
# Check to make sure the launcher is in the directory
if [ ! -f $HOME/.ftb/FTB_Launcher.jar ]
then
wget --directory-prefix=$HOME/.ftb/ http://www.creeperrepo.net/direct/FTB2/7ca94753565505f94112ce22c3935f6d/launcher%5EFTB_Launcher.jar
fi
# Fix for users of special IM modules
unset XMODIFIERS GTK_IM_MODULE QT_IM_MODULE
# The actual code to run the launcher
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_HOME/lib/amd64/:$JAVA_HOME/lib/i386/:$JAVA_HOME/jre/lib/amd64/:$JAVA_HOME/jre/lib/i386/" exec java -Xmx1024M -Xms512M -jar $HOME/.ftb/FTB_Launcher.jar $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment