小编gra*_*ood的帖子

从 Mac 命令行打开 Google Chrome 特定配置文件

我一直试图从命令行打开谷歌浏览器,但没有运气!我已经尝试过如何使用指定的“用户配置文件”启动 Chrome?

我的目标是在我的 Mac 上使用特定的配置文件(例如“配置文件 1”、“配置文件 2”或“默认”)从命令行打开 Google Chrome,具体来说是使用 bash。

更新:2014 年 6 月 3 日可以正常工作,但仅在第一次打开 chrome 时才有效

open -a Google\ Chrome --args --"profile-directory"="Profile 1"
Run Code Online (Sandbox Code Playgroud)

那么,在 google chrome 已经启动之后,你如何让 --args 被接受?

google-chrome bash command-line macos

13
推荐指数
2
解决办法
1万
查看次数

标签 统计

bash ×1

command-line ×1

google-chrome ×1

macos ×1