Skip to content

Instantly share code, notes, and snippets.

@rickeyvisinski-kanban
Created January 17, 2013 21:23
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 rickeyvisinski-kanban/4559886 to your computer and use it in GitHub Desktop.
Save rickeyvisinski-kanban/4559886 to your computer and use it in GitHub Desktop.
Light table launcher script
#!/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