The following commit has been merged in the master branch:
commit c37efbff9c2059d8a6056ae8c980928b2a7316d7
Author: Franklin <[email protected]>
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
_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit