Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created June 26, 2014 15:47
Show Gist options
  • Select an option

  • Save mattdeboard/0ec74df01653dcb9e20f to your computer and use it in GitHub Desktop.

Select an option

Save mattdeboard/0ec74df01653dcb9e20f to your computer and use it in GitHub Desktop.
#/bin/sh
#
# This is a script which sets the lib path then launches BBT
# The program location
TOP=$(cd "${0%/*}" && echo ${PWD})
PROGRAM="${TOP}/BattleBlockTheater"
# Add the current directory to the library path to pick up libsteam_api.so
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:."
export _JAVA_AWT_WM_NONREPARENTING=1
echo "This is my LD_LIBRARY_PATH\n"
echo "${LD_LIBRARY_PATH}"
echo "End LD_LIBRARY_PATH\n"
exec "${PROGRAM}" "$@"
# vi: ts=4 sw=4 expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment