Add command argument string splitting

launchd uses exec() under the hood when you specify ProgramArguments
or Program so you must break apart program arguments into separate
strings in an array or the command will fail
This commit is contained in:
Aaron Kalin
2012-09-10 19:10:47 -05:00
parent c617ddb3b2
commit 698e6ae092
4 changed files with 42 additions and 1 deletions
+3 -1
View File
@@ -13,7 +13,9 @@
</dict>
<key>ProgramArguments</key>
<array>
<string><%= process.command %></string>
<%- command_args.each do |command| -%>
<string><%= command %></string>
<%- end -%>
</array>
<key>KeepAlive</key>
<true/>