xcode - Sandboxing in pyobjc : Login at startup -
i have pyobjc app packaging py2app. have checkbox using user can take add together app start when scheme restarted. doing launchservices, however, not work when app sandboxed. trying accomplish behaviour using servicemanagement. http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project/ . since using pyobjc, don't utilize xcode.
i have manually created helper app, signed , placed in contents\library\loginitems. when call, smloginitemsetenabled('com.*****.helperapp', true), see helper app started. documentation says helper app called whenever user logs in. however, doesn't seem happen. there additional step required? helper app supposed start everytime scheme restarted or when user logs out , logs in?
however, see couple of errors in console:
14/10/14 2:47:40.155 pm lsboxd[312]: not allowing process 611 launch "/users/pradeep/desktop_documents/packaging/osx/build/dist/app_name.app/contents/library/loginitems/login_helper.app" because security assessment verdict denied. 14/10/14 2:47:40.155 pm lsboxd[312]: not allowing process 611 register app "/users/pradeep/desktop_documents/packaging/osx/build/dist/app_name.app/contents/library/loginitems/login_helper.app" launch.
when seek restart machine, notice helper app not restarting. before shutting down, helper app getting killed.
xcode py2app pyobjc appstore-sandbox service-management
No comments:
Post a Comment