码迷,mamicode.com
首页 > 系统相关 > 详细

解决ubuntu无法使用root用户启动Google Chrome浏览器

时间:2018-10-12 01:35:12      阅读:350      评论:0      收藏:0      [点我收藏+]

标签:whereis   root用户   man   HERE   google   chrome   where   exe   解决   

1.找到Chrome的路径

# whereis google-chrome

google-chrome: /usr/bin/google-chrome /usr/share/man/man1/google-chrome.1.gz

2.编辑文件

# gedit /usr/bin/google-chrome

将 exec -a "$0" "$HERE/chrome" "$@"  改为
exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox 

 

解决ubuntu无法使用root用户启动Google Chrome浏览器

标签:whereis   root用户   man   HERE   google   chrome   where   exe   解决   

原文地址:https://www.cnblogs.com/yanyh/p/9775787.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!