macos 如何在 Mac 上向 Google Chrome 添加启动参数?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5018494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to add launch parameter to Google Chrome on Mac?
提问by weilou
I wanna run Chrome on Mac with the parameter --enable-speech-input
.
我想使用参数在 Mac 上运行 Chrome --enable-speech-input
。
Can anyone tell me the steps to do this and the steps to undo this? (If one day I wanna run Chrome without the launch parameter)
谁能告诉我执行此操作的步骤以及撤消此操作的步骤?(如果有一天我想在没有启动参数的情况下运行 Chrome)
回答by chrisparker2000
Run Terminal.app then use the following command:
运行 Terminal.app,然后使用以下命令:
open /Applications/Google\ Chrome.app --args --enable-speech-input
This will launch it once using your parameter. From there you could make an alias to make it easier to launch from the terminal or write an AppleScript to make it double clickable.
这将使用您的参数启动一次。从那里你可以创建一个别名,以便更容易地从终端启动或编写一个 AppleScript 以使其可双击。
Find more information here.
在此处查找更多信息。