Re: Use of hdiutil in a launchdaemon?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Nathan, _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com On May 8, 2009, at 3:11 PM, Nathan Herring wrote: I have a script that builds, places files in correct places, and am trying to add a call to hdiutil to build a compressed disk image from the placed files. This works swimmingly at the command line, either in a login window session, or an ssh session. However, it hangs (or blocks on some nebulous, never-to-be-entered input) when it's run ultimately from a LaunchDaemon run from /Library/ LaunchDaemons running as me. Is there something (well known) I need to do specifically to fix this? And or some better way to diagnose what's going on here? You appear to be laboring under the assumption that changing your UID is sufficient to run as your user. This is not true on our platform. When running from a daemon, hdiutil is in a different bootstrap than running at a loginwindow or GUI session and thus has different capabilities. You should be running as an agent to be truly running in your user's context. -- Damien Sorresso BSD Engineering Apple Inc. smime.p7s
participants (1)
-
Damien Sorresso