[英]Chrome - avoid displaying start-up popup
I am starting Chrome with the following command: 我正在使用以下命令启动Chrome:
google-chrome --user-data-dir=/data --app=http://greensock.com/gsap
As I am running this in a docker container, the chrome profile will not exist. 当我在docker容器中运行此程序时,chrome配置文件将不存在。 If /data is empty, then the following popup is displayed.
如果/ data为空,则显示以下弹出窗口。 How can I avoid this?
如何避免这种情况?
I've found the answer. 我找到了答案。 --no-first-run does the job.
--no-first-run不做这项工作。
http://peter.sh/experiments/chromium-command-line-switches/#no-first-run http://peter.sh/experiments/chromium-command-line-switches/#no-first-run
google-chrome --user-data-dir=/data --no-first-run http:/www.google.com
To test, remove the /data first, like: 要进行测试,请首先删除/ data,例如:
rm -R /data && google-chrome --user-data-dir=/data --no-first-run http:/www.google.com
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.