[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 97ba1f36404c0ba76b536d2c39d2cc7a2f3a11c8
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Sat Jan 24 10:03:49 2015 +0800

    Use a shell script to start instead calling browser directly

diff --git a/ezgo-wordtest/wordtest.sh b/ezgo-wordtest/wordtest.sh
new file mode 100755
index 0000000..5a5222e
--- /dev/null
+++ b/ezgo-wordtest/wordtest.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+FIREFOX=`which firefox`
+ICEWEASEL=`which iceweasel`
+CHROME=`which google-chrome`
+CHROMIUM=`which chromium-browser`
+
+WORDTEST=
+
+if [ ! -z "${FIREFOX}" ]; then	# use firefox
+	${FIREFOX} /usr/share/ezgo/ezgo-wordtest/index.html
+elif [ ! -z "${ICEWEASEL}" ]; then # use iceweasel
+	${ICEWEASEL} /usr/share/ezgo/ezgo-wordtest/index.html
+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
+fi
+

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list