Wire auxbutton and vibrator properly
[gregoa/zavai.git] / run
diff --git a/run b/run
index 5fc2efbd0727e308c034f67c1ab3fe922709bdf3..2e20794197b6b71ff3f8103aea959053b837f0e7 100755 (executable)
--- a/run
+++ b/run
@@ -1,9 +1,16 @@
 #!/bin/sh
 
-ROOT=`dirname $0`
+ROOT=$( (cd $(dirname $0); pwd) )
 
-export PYTHONPATH=$ROOT
-export ZAVAI_CONFDIR=$ROOT/conf
-export ZAVAI_PLUGINS=$ROOT/plugins
+#export ZAVAI_CONFDIR=$ROOT/conf
+export ZAVAI_ICONDIR=$ROOT/icons
+export PATH="$PATH:$ROOT/lindi"
 
-$ROOT/src/zavai "$@"
+#$ROOT/src/zavai "$@"
+
+cd $ROOT
+while true
+do
+       # Make argv[0] always an absolute path
+       $ROOT/build/src/zavai "$@"
+done