简体   繁体   English

Chrome-避免显示启动弹出窗口

[英]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.

相关问题 如何通过Google Chrome以全屏模式启动Web应用程序? - How to start-up web app in full-screen mode via Google Chrome? Chrome扩展程序-在弹出窗口中显示html - Chrome Extension — Displaying html in the popup 设置密码以关闭 chrome 并启动 chrome 作为弹出窗口 - set password to close chrome and start chrome as popup UnreachableBrowserException: Could not start a new session 可能的原因是远程服务器地址无效或浏览器启动失败 - UnreachableBrowserException: Could not start a new session Possible causes are invalid address of the remote server or browser start-up failure 避免在Chrome扩展程序中使用HTTP身份验证弹出窗口(摘要) - Avoid HTTP auth popup in a chrome extension (digest) 打开弹出窗口后谷歌浏览器出现奇怪的一行,如何避免? - Strange line on Google Chrome after openning popup, how to avoid it? 当chrome为chrome应用启动时,如何启动后台任务? - How to start a background task when chrome fires up for a chrome app? 如何打开Chrome扩展程序弹出窗口? - How do I make a chrome extension popup open up? Chrome 66.0更新后,Chrome扩展程序的popup.html不显示 - Chrome extension's popup.html not displaying after Chrome 66.0 update ReCaptcha没有在Chrome中显示(或占用空间)。 - ReCaptcha isn't displaying (or taking up space) in chrome.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM