Skip to content

Instantly share code, notes, and snippets.

@jlitewski
Created December 18, 2012 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jlitewski/4330506 to your computer and use it in GitHub Desktop.
Save jlitewski/4330506 to your computer and use it in GitHub Desktop.
Feed the Beast launcher script for the ftb-launcher AUR package
#!/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/95cc858d6f828e40adb618e12a68d39e/FTB_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