diff options
author | trashstar | 2017-05-17 11:19:24 +0200 |
---|---|---|
committer | trashstar | 2017-05-17 11:19:24 +0200 |
commit | e6f37bd17f20406f4c012412772e37a0cc4da3f7 (patch) | |
tree | 276325003a27013d2194bf9c117bdb8ed41923b7 /lighttable | |
download | aur-e6f37bd17f20406f4c012412772e37a0cc4da3f7.tar.gz |
Initial commit.
Diffstat (limited to 'lighttable')
-rw-r--r-- | lighttable | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lighttable b/lighttable new file mode 100644 index 000000000000..0cfa84cf9622 --- /dev/null +++ b/lighttable @@ -0,0 +1,15 @@ +#!/bin/sh +BIN=light +LT_HOME=/opt/LightTable + +ARGS="$@" +CORRECTED=${ARGS//-/<d>} +CORRECTED=${CORRECTED// /<s>} + +if [ -t 0 ] && [ $# != 0 ]; then + #We're in a terminal... + LD_LIBRARY_PATH="$LT_HOME:$LD_LIBRARY_PATH" $LT_HOME/$BIN "<d><d>dir=`pwd`<s>$CORRECTED" & +else + #We were double clicked + LD_LIBRARY_PATH="$LT_HOME:$LD_LIBRARY_PATH" $LT_HOME/$BIN & +fi |