The following commit has been merged in the master branch:
commit 97ba1f36404c0ba76b536d2c39d2cc7a2f3a11c8
Author: Franklin <[email protected]>
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

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to