Root用户下运行Google Chrome


起因

chromium的沙盒机制(sandbox)无法在root用户下运行

解决方案

在命令行下输入如下代码即可启动

google-chrome --no-sandbox

如需通过桌面图标启动,请修改/usr/share/applications/google-chrome.desktop文件

Exec=/usr/bin/google-chrome-stable %U

改为

Exec=/usr/bin/google-chrome-stable --no-sandbox %U 

有三处,都添加–no-sandbox即可


  目录