[launchd-dev] Permissions/ownership for a per-user launch agent

Per Olofsson per.olofsson at gu.se
Tue Dec 3 00:02:35 PST 2013


2 dec 2013 kl. 19:12 skrev Mitchell J Laurren-Ring <lists at rynosoft.com>:

> The problem is that my postflight script is running as root which results in the launchctl command being executed as root, leading to the problem with not being able to access the default printer. 

This is because the installer and the user’s session aren’t in the same bootstrap context. Details here, read carefully:

  https://lists.macosforge.org/pipermail/launchd-dev/2011-January/000890.html

The script I use is here:

  https://github.com/MagerValp/Scripted-Mac-Package-Creation/blob/master/scripts/postinstall

-- 
Per Olofsson, IT-service, University of Gothenburg



More information about the launchd-dev mailing list