#MAIN,RUNTIME,WEBAPPLICATION,WEBVIEW
export TARGET=TIZEN
-export DEBUG=*
export WAS_EXTENSIONS_REPO=$WAS_HOME/extensions_repo
export WAS_EXTENSIONS_PATH=$WAS_HOME/extensions
export WAS_INSTALLER_PATH=$WAS_HOME/installer
export WAS_APPS_REPO=$WAS_HOME/apps_repo
export WAS_SAMPLE_PATH=$WAS_HOME/sample
+# Source the optparse.bash file ---------------------------------------------------
+source $SCRIPTDIR/optparse/optparse.bash
+# Define options
+optparse.define short=a long=app desc="path" variable=path
+optparse.define short=d long=debug desc="debug mode on" variable=debug value=true default=false
+
+if [ "$debug" = "true" ]; then
+ echo "********* DEBUG MODE ON *********"
+ export DEBUG=*
+fi
+
echo "Start launcher"
-$SCRIPTDIR/electron
+if [ -n "$path" ]; then
+ echo "PATH : " $path
+ $SCRIPTDIR/electron $path
+else
+ $SCRIPTDIR/electron
+fi