X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=WebThing;h=25cddfd9392b62134a2fc0b1ec686dcb7118e8b8;hb=HEAD;hp=50e56f3cddeb6c350b023fa8ffe43bf74f1dfead;hpb=7bf09cef03c7fd78e599039b14a29e8a3f3eed42;p=WebThing.git diff --git a/WebThing b/WebThing index 50e56f3..25cddfd 100755 --- a/WebThing +++ b/WebThing @@ -1,7 +1,11 @@ #!/bin/sh -export LD_LIBRARY_PATH=plugins:$LD_LIBRARY_PATH +export WEBTHING_HOME=`dirname "$0"` -echo $LD_LIBRARY_PATH +# We change directories because we don't have a proper configuration +# architecture, yet. +cd "$WEBTHING_HOME" -exec mono main.exe "$@" +export LD_LIBRARY_PATH=$WEBTHING_HOME/lib:$WEBTHING_HOME/plugins:$LD_LIBRARY_PATH + +exec mono $WEBTHING_HOME/WebThingMain.exe "$@" >/dev/null 2>&1