Ubuntu运行Chrome出现“Google Chrome can not be run as root” 的解决方法

Ubuntu中root用不能打开Chrome浏览器解决方法:

找到启动文件:/opt/google/chrome/google-chrome

编辑该文件,修改最后一行:

exec -a "$0" "$HERE/chrome" "$@"

to

exec -a "$0" "$HERE/chrome" "$@" --user-data-dir $HOME

相关推荐