Created
January 17, 2013 21:23
-
-
Save rickeyvisinski-kanban/4559886 to your computer and use it in GitHub Desktop.
Light table launcher script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BIN=LightTable | |
HERE=$PWD | |
warn() { | |
echo "Make sure you have libudev.so.0 symlinked in $HERE to your version of libudev" | |
exit 2 | |
} | |
[[ -e libudev.so.0 ]] || warn | |
if [[ -n "$LD_LIBRARY_PATH" ]]; then | |
LD_LIBRARY_PATH="$HERE:/lib:$LD_LIBRARY_PATH" | |
else | |
LD_LIBRARY_PATH="$HERE:/lib" | |
fi | |
export LD_LIBRARY_PATH | |
exec -a "$0" "$HERE/$BIN" "$@" & | |
# vim: set ft=sh ts=4 sw=4 et : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment