我想运行一个命令行,用另一个配置文件打开一个新的 chrome 窗口。
我测试了以下命令:
先决条件:
我有两个配置文件:Profile 1
和Profile 2
Chrome 已经在运行 Profile 1
google-chrome --profile-directory="Profile 2"
上面的命令除了将焦点放在当前正在运行的 chrome 上之外什么都不做 Profile 1
我也试过:
google-chrome --profile-directory="Profile 2" --new-window
效果是一样的。
我想运行一个命令行来打开一个新的 chrome 窗口,Profile 2
而已经有一个 Chrome 窗口在运行Profile 1
添加名为“Whatever”的新配置文件时,Chrome 不会创建同名的配置文件文件夹。命名约定是“配置文件 X”,其中 X 是整数。因此,在执行命令之前可能会检查真实的配置文件文件夹名称。
chrome --profile-directory="Profile folder name"
在 Ubuntu 上运行良好。
您可能还会发现此答案和讨论很有用https://superuser.com/a/377195/1084604
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句