summarylogtreecommitdiffstats
path: root/lighttable
diff options
context:
space:
mode:
Diffstat (limited to 'lighttable')
-rw-r--r--lighttable15
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