Skip to content

A mini framework written in Swift to provide access to the LaunchServices login items API.

License

Notifications You must be signed in to change notification settings

nhojb/LoginItems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LoginItems

A mini framework written in Swift to provide access to the LaunchServices login items API.

Usage:

// Add your app to the users list of Login Items
LoginItemsManager.shared.startAtLogin = true

Alternatively add a LaunchItemsManager object to your xib file and then bind a checkbox to "Launch Items Manager" using the model key path "self.startAtLogin".

Note

The LaunchServices APIs used have been deprecated since macOS 10.11 and will only work in non-sandboxed apps.

However this seems a bad idea to me, as the only supported alterative is for apps to run a deamon via launchctl - which is not visible to most users. YMMV.

About

A mini framework written in Swift to provide access to the LaunchServices login items API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published