August 24, 2016 at 12:38 AMOn 23 Aug 2016, at 17:53, James Bucanek <subscriber@gloaming.com> wrote:P.S. I would be nice if the UserName launchd property would also accept a number and interpret it as a UID: <key>UserName</key><integer>501</integer>.Yeah, that’s not really how launchd is architected.
Correct.Each daemon is named after its user: com.qrecall.switchboard.501, com.qrecall.switchboard.502, and so on. Each user connects only with its switchboard, and that switchboard only manages endpoints belonging to that user.Hmmm, that’s weird. How do you stop code running as user 502 connecting to the `com.qrecall.switchboard.501` service? Presumable the daemon has a user ID check on its IPC.
That was my original plan!If you’re doing that anyway, you could just have one daemon that handles all users.