从终端启动时将args发送到Firefox


3

有关从终端应用启动Google Chrome的其他参数,请按以下方式发送:

open /Applications/Google\ Chrome.app   --args -myArgs="ARGS"

向Firefox发送参数的语法是什么?

尝试了显而易见的事:

open /Applications/Firefox.app   --args -myArgs="ARGS"

这会运行Firefox,但args未设置。

Answers:


3

为了通过参数由所述打开的应用程序open的命令,使用两者-a --args 选项

例: open -a Firefox --args -private-window

open手册页open [ −a application] file ... [ −−args arg1 ...]

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.