Allow SMLoginItemSetEnabled to register the root bundle as a login item

Originator:matt
Number:rdar://10809443 Date Originated:04-Feb-2012 01:57 PM
Status:Closed Resolved:
Product:Mac OS X SDK Product Version:10.7.3
Classification:Enhancement Reproducible:N/A
 
Summary:

SMLoginItemSetEnabled currently works only on bundles in Contents/Library/LoginItems in the calling application's bundle. Allow the calling application to register or unregister itself as a login item.

Steps to Reproduce:

Call SMLoginItemSetEnabled with the calling application's URL and bundle identifier.

Expected Results:

The calling application is registered or unregistered as a login item.

Actual Results:

The call to SMLoginItemSetEnabled fails.

Notes:

Sandboxed applications that wish to be registered as a login item could be simplified into a single application if this were supported.

Comments

Apple Developer Relations

Thank you for filing this bug report.

This is an old report and much has changed since it was filed so we are closing it.

If this is still an issue for you, or if you have questions regarding the resolution of this issue, please update your bug report with them.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

Again, thank you for taking the time to submit bugs. We sincerely appreciate your input.


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!