`

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呢!

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics