Question

I have developed a launchAgent in cocoa. It works fine for me on dev environment, by placing the plist file in location /Library/LaunchAgents/.To distribute and install this on other laptops, I created the package using package maker tool. As part of installation process I want to change permission of the plist file and copy it to /Library/LaunchAgents location. Could any one tell me how can i achieve this ?

Thanks in advance for help....Any help will be appreciated ..!!!!

Was it helpful?

Solution

In PackageMaker, select the launchd plist, and in "Configuration" set the "Install" location to /Library/LaunchAgents/com.unicorn.omgponies.plist and the "Destination" to /. You probably don't want to enable relocation for a launchagent. Then go "Contents" and you can set the ownership and permissions there.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top