2 dec 2013 kl. 19:12 skrev Mitchell J Laurren-Ring <li...@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

_______________________________________________
launchd-dev mailing list
launchd-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/launchd-dev

Reply via email to