Specifying multiple executable arguments using startupitems
Steven Smith
steve.t.smith at gmail.com
Sun Jun 14 17:18:08 UTC 2020
> If startupitem support in MacPorts base is not sufficient to express what we need, it should be enhanced.
That’s a good objective. The current startupitems behavior annoyed me until I just learned to copy what others had done to code around it.
I’d also note that doing a `man launchd.plist` and `man plutil` on each macOS 10.15, 10.14, … suggests that this is also a pretty ambitious objective for a single tcl function.
> On Jun 14, 2020, at 13:07, Ryan Schmidt <ryandesign at macports.org> wrote:
>
>
>
>>> On Jun 14, 2020, at 12:04, Steven Smith wrote:
>> Widespread practice is to code around it and edit the launchd .plist’s in the post-activate block. You can use tcl’s reinplace or sh’s plutil as necessary to edit the .plists.
>> Example Portfiles that do this extensively:
>> • https://github.com/macports/macports-ports/blob/master/net/calendar-contacts-server/Portfile
>> • https://github.com/macports/macports-ports/blob/master/sysutils/clamav-server/Portfile
>> • https://github.com/macports/macports-ports/blob/master/mail/mail-server/Portfile
>
> I would like to strongly discourage the use of such hacks. If startupitem support in MacPorts base is not sufficient to express what we need, it should be enhanced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200614/e309c8fa/attachment-0001.bin>
More information about the macports-dev
mailing list