Re: Advice on installing an Agent to the users home directory
Re: Advice on installing an Agent to the users home directory
- Subject: Re: Advice on installing an Agent to the users home directory
- From: Iceberg-Dev <email@hidden>
- Date: Wed, 26 Aug 2009 22:14:25 +0200
On Aug 26, 2009, at 2:25 PM, Citizen wrote:
Hello,
[...] For the User Domain, the perl command does not work. The
result for this is the path "/Library/LaunchAgents/
com.zenopolis.ApplicationAgent.plist". What I was attempting to get
was the path "/Users/username/Library/LaunchAgents/
com.zenopolis.ApplicationAgent.plist".
Is this general approach correct? Do I just need to keep searching
and work out the right scripting voodoo? Or is this likely to be a
dead end anyway? Are any of you tackling this same requirements in
a completely different way?
The following two attempts lead me to believe that I needed to set
an absolute path in the Application Agent Property List:
* I've tried replacing -ROOTPREFIX- for the User Domain with "~".
The console showed the error: posix_spawnp("~/Applications/
ApplicationAgent.app/Contents/MacOS/ApplicationAgent", ...): No
such file or directory.
* I've also tried making the ProgramArguments value in the Agent
Property List a relative path (../../Applications/
ApplicationAgent.app/Contents/MacOS/ApplicationAgent), but this did
not work in the User Domain. The console showed the error:
posix_spawnp("../../Applications/ApplicationAgent.app/Contents/
MacOS/ApplicationAgent", ...): No such file or directory.
Use the $USER env var?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden