]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/tool/WebDeepin.sh
Add check for the built-in browser in WebDeepin.sh
[Ventoy.git] / INSTALL / tool / WebDeepin.sh
index 6c408e2c5294ec2b74a3bdb4bdf9e7d261c0a653..b37f394cd8a60a4e9903c40f980caf01c46dd667 100644 (file)
@@ -3,6 +3,18 @@
 LOGFILE=log.txt
 VUSER=$(get_user)
 
+if which browser >/dev/null 2>&1; then
+    :
+else
+    if [ "$LANG" = "zh_CN.UTF-8" ]; then
+        echo "  Built-in browser not found in the system, please use VentoyWeb.sh ..."
+    else
+        echo "  未找到系统内置的 browser (卸载了?)请使用 VentoyWeb.sh ..."
+    fi
+    exit 1
+fi
+
+
 if [ -e $LOGFILE ]; then
     chown $VUSER $LOGFILE
 else