Google Chrome can not be run as root.

【linux】Google Chrome can not be run as root.

Google Chrome can not be run as root.谷歌浏览器不能为root用户启动!

Please start Google Chrome as a normal user. To run as root, you must specify an alternate --user-data-dir for storage of profile information.

介绍的方法也是很简单的!修改Chrome配置文件即可!

1
vim /opt/google/chrome/google-chrome

把最后一行

1
exec -a “$0″ “$HERE /chrome ” “$@ ”

修改成

 
exec -a "$0" "$HERE/chrome" "$@" -user-data-dir
记得一定不要记把昌号搞错了。-user-data-dir 这个短横线也不能错

大功告成了,这个时候我们就可以使用root用户来启动chrome呢!

猜你喜欢

转载自wangjin161.iteye.com/blog/2034759