[launchd-dev] launchd & launchctl Aqua session type on OSX Tiger

Damien Sorresso dsorresso at apple.com
Fri Oct 9 09:49:23 PDT 2009

On Oct 9, 2009, at 7:43 AM, Grant Erickson wrote:
> On 10/9/09 7:00 AM, launchd-dev-request at lists.macosforge.org wrote:
>> I have a script which I can successfully schedule using on OSX Leopard
>> as follows :-
>> launchctl load -w -S Aqua com.floehopper.script
>> Apparently I need the Aqua session type because the script accesses the
>> keychain using the SecKeychainFindGenericPassword function. If I don't
>> set the session type to Aqua, I get a errSecInteractionNotAllowed
>> "Interaction with the Security Server is not allowed" error (-25308).
>> However, I also want to schedule the script on OSX Tiger, but the
>> session type -S option is not available for launchctl.
>> I've tried calling the SecKeychainSetUserInteractionAllowed function
>> with the state parameter set to false, but then I end up with a
>> errSecAuthFailed "Authorization/Authentication failed" error (-25293).
>> Does anyone have any ideas how I might get this working on OSX Tiger?
> James:
> I'd recommend you read:
>    http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html
> LaunchAgents are, unfortunately, DOA (dead on arrival) in Tiger.

To be pedantic, they were never alive on Tiger in the first place. :)
Damien Sorresso
BSD Engineering
Apple Inc.

More information about the launchd-dev mailing list