简体   繁体   中英

How to install launch agent on Mac os x 10.5 / 10.6

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 ..!!!!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM