Sandboxed apps need ability to create login items
| Originator: | jbrayton | ||
| Number: | rdar://9790207 | Date Originated: | 17-Jul-2011 |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.7 |
| Classification: | Reproducible: |
17-Jul-2011 03:52 PM John Brayton: Summary: My app, CloudPull (http://www.goldenhillsoftware.com/), creates a login item for itself after asking the user for permission. This is important because CloudPull performs backups. It can only perform backups when running. It seems that sandboxed apps have no ability to create login items for themselves. This is my assumption because my LSSharedFileList API calls fail when the app is sandboxed, I have not seen documentation for how sandboxed apps should add login items for themselves, and my devforums question on the topic has gone unanswered. https://devforums.apple.com/message/473934 Steps to Reproduce: 1. Write an app to add a login item for itself using the LSSharedFileList API. 2. Sandbox the app. 3. Watch the LSSharedFileList API calls fail. Expected Results: N/A Actual Results: N/A Regression: N/A Notes: If there is an alternative API or approach I should be using, I am open to suggestions. Thanks.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
via servicemanagment framework.. google the extact way but it requires a helper. this can be closed