Fwd: How to make an app launch on login?
Fwd: How to make an app launch on login?
- Subject: Fwd: How to make an app launch on login?
- From: Jeff Szuhay <email@hidden>
- Date: Wed, 20 Apr 2016 00:41:22 -0700
As Jens suggested in another thread, launchd is likely too low-level.
Finally, there is Tim Schroeder’s “Launch At Login Project” which enables
a sandboxed app to launch itself.
<http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project <http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project>/>
This uses the SMLoginItemSetEnabled call in a separate process.
I wish someone at Apple would step in here and provide a little direction on which is the
best way for an app to launch _itself_ at login.
> On Apr 19, 2016, at 2:43 PM, Jeff Szuhay <email@hidden <mailto:email@hidden>> wrote:
>
> Again, I jumped the gun.
>
> The preferred way seems to be through the use of launchd
> <http://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html <http://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html>
>
>
>>>> On Apr 19, 2016, at 2:01 PM, Jens Alfke <email@hidden <mailto:email@hidden>> wrote:
>>>>
>>>> One of my companies’ apps has a “Launch at login” pref, which no longer works in OS X 10.11. I’m not surprised, since the existing code implements this by writing into loginwindow’s user defaults :-p
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden