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

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 

猜你喜欢

转载自www.cnblogs.com/yanyh/p/9775787.html