[Blends-commit] [SCM] ezgo branch, master, updated. c4c461e3d7b1812feaa4bc7944cc2d6c2a179c15

Franklin franklin at goodhorse.idv.tw
Thu Feb 26 15:13:22 UTC 2015


The following commit has been merged in the master branch:
commit c37efbff9c2059d8a6056ae8c980928b2a7316d7
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Sat Jan 24 10:08:26 2015 +0800

    Add a comment and use variable for path

diff --git a/ezgo-wordtest/wordtest.sh b/ezgo-wordtest/wordtest.sh
index 5a5222e..4cd4385 100755
--- a/ezgo-wordtest/wordtest.sh
+++ b/ezgo-wordtest/wordtest.sh
@@ -1,21 +1,23 @@
 #!/bin/bash
 
+# Franklin.20150123: It's better to run wordtest with firefox or iceweasel, because google would not allow user to access local files.
+
 FIREFOX=`which firefox`
 ICEWEASEL=`which iceweasel`
 CHROME=`which google-chrome`
 CHROMIUM=`which chromium-browser`
 
-WORDTEST=
+WORDTEST=/usr/share/ezgo/ezgo-wordtest/index.html
 
 if [ ! -z "${FIREFOX}" ]; then	# use firefox
-	${FIREFOX} /usr/share/ezgo/ezgo-wordtest/index.html
+	${FIREFOX} ${WORDTEST}
 elif [ ! -z "${ICEWEASEL}" ]; then # use iceweasel
-	${ICEWEASEL} /usr/share/ezgo/ezgo-wordtest/index.html
+	${ICEWEASEL} ${WORDTEST}
 elif [ ! -z "${CHROMIUM}" ]; then # use chromium
 	${CHROMIUM} /usr/share/ezgo/ezgo-wordtest/start_server.sh
 elif [ ! -z "${CHROME}" ]; then # use google-chrome
 	${CHROME} /usr/share/ezgo/ezgo-wordtest/start_server.sh
 else
-	xdg-open /usr/share/ezgo/ezgo-wordtest/index.html
+	xdg-open ${WORDTEST}
 fi
 

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list