[launchd-dev] Environment variables

Dave Zarzycki zarzycki at apple.com
Thu Nov 15 10:38:14 PST 2007


On Nov 15, 2007, at 9:45 AM, Hamish Allan wrote:

> On Nov 15, 2007 5:16 PM, Dave Zarzycki <zarzycki at apple.com> wrote:
>
>> This is all context sensitive. Right now, the ssh-agent is only  
>> loaded
>> into the GUI login context. The environment variable it exports is
>> only available to the jobs associated with that session.
>>
>> Where are you installing your plist?
>
> ~/Library/LaunchAgents
>
>> If you're loading it by hand, what arguments are you passing to the
>> 'launchctl' tool?
>
> No arguments. I just tried passing '-S LoginWindow' but it reports
> 'nothing found to load' (even if I give it the full path of my .plist
> file).

That makes some amount of sense. The 'ssh-agent' job isn't configured  
to run in the LoginWindow context, and neither is your job's plist.

davez


More information about the launchd-dev mailing list