1、百度找到的解决办法。写在这里方便下次使用。
export LD_LIBRARY_PATH
export LC_CTYPE="zh_CN.UTF-8" #这是解决google浏览器乱码问题
export CHROME_VERSION_EXTRA="stable"
# We don‘t want bug-buddy intercepting our crashes. http://crbug.com/24120
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
# Automagically migrate user data directory.
# TODO(phajdan.jr): Remove along with migration code in the browser for M33.
if [[ -n "" ]]; then
if [[ ! -d "" ]]; then
"$HERE/chrome" "--migrate-data-dir-for-sxs=" \
--enable-logging=stderr --log-level=0
fi
fi
exec -a "$0" "$HERE/chrome" " [email protected] --user-data-dir" #这是解决不能root打开浏览器
时间: 2024-10-14 04:26:08