From c02a6955c3076e46c2c66becb27a59b434fce3d9 Mon Sep 17 00:00:00 2001 From: longpanda Date: Tue, 6 Jul 2021 10:10:59 +0800 Subject: [PATCH] Add check for the built-in browser in WebDeepin.sh --- INSTALL/tool/WebDeepin.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/INSTALL/tool/WebDeepin.sh b/INSTALL/tool/WebDeepin.sh index 6c408e2c..b37f394c 100644 --- a/INSTALL/tool/WebDeepin.sh +++ b/INSTALL/tool/WebDeepin.sh @@ -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