gpt4 book ai didi

ios - Program 和 ProgramArguments 有什么不同

转载 作者:行者123 更新时间:2023-11-29 01:29:36 25 4
gpt4 key购买 nike

是否有任何引用来区分 launchdaemon.plist 中的“Program”和“ProgramArguments”?

我看到有的plist只有'ProgramArguments',有的还有'Program',想搞清楚。

提前致谢。

最佳答案

这确实有点令人困惑,但在大多数情况下这两种形式都是有效的。

来自documentation :

Program < string>
This key maps to the first argument of execvp(3). If this key is missing, then the first element of the array of strings provided to the ProgramArguments will be used instead. This key is required in the absence of the ProgramArguments key.

ProgramArguments < array of strings>
This key maps to the second argument of execvp(3). This key is required in the absence of the Program key. Please note: many people are confused by this key. Please read execvp(3) very carefully!

关于ios - Program 和 ProgramArguments 有什么不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33582932/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com