• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to make an app launch on login?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to make an app launch on login?


  • Subject: How to make an app launch on login?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 19 Apr 2016 14:01:56 -0700

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

I’m trying to find the currently supported API for this. The “Adding Login Items” page says:
> There are two ways to add a login item: using the Service Management framework, and using a shared file list.
> Login items installed using the Service Management framework are not visible in System Preferences and can only be removed by the application that installed them.
> Login items installed using a shared file list are visible in System Preferences; users have direct control over them.

I’d definitely prefer the latter, since it seems like a bad idea to have the app not show up in the user’s login-item list in the Accounts system pref.

I found LSSharedFileList.h, but everything in there is marked deprecated. :(

What are my options?

—Jens
_______________________________________________

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


  • Follow-Ups:
    • Re: How to make an app launch on login?
      • From: Alex Zavatone <email@hidden>
    • Re: How to make an app launch on login?
      • From: Jeff Szuhay <email@hidden>
  • Prev by Date: Re: BOOL parameter passed as nil object
  • Next by Date: Re: How to make an app launch on login?
  • Previous by thread: Re: BOOL parameter passed as nil object
  • Next by thread: Re: How to make an app launch on login?
  • Index(es):
    • Date
    • Thread