Howto run google-chrome as root
Posted fuleying
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Howto run google-chrome as root相关的知识,希望对你有一定的参考价值。
Just want to add a permanent solution to the problem:
1. Open google-chrome located in /usr/bin with ‘gedit‘, ‘kate‘ or your favorite text editor.
Code:
gedit /usr/bin chromium-browser
2. Add "--user-data-dir" (without the quotes) at the very end of the file. Mine looks like this:
exec -a "$0" "$HERE/chrome" "[email protected]" --user-data-dir
3. Save, close and voilà, you‘re done. Enjoy your favorite browser.
以上是关于Howto run google-chrome as root的主要内容,如果未能解决你的问题,请参考以下文章
centos7.4 64位安装 google-chrome 与 chromedriver 运行 Python selenium 项目
Selenium 在 Fedora 35 中使用 chromium 而不是 google-chrome,如何设置 google-chrome?以及如何设置具体的下载文件路径?