Skip to content

An example project demonstrating Launch at Login (launch application on system startup) feature implementation for macOS Apps in Swift.

License

Notifications You must be signed in to change notification settings

jogendra/launch-at-login-macos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Launch at Login feature in MacOS Apps

An example project demonstrating Launch at Login (launch application on system startup) feature implementation for macOS Apps in Swift (SwiftUI).

There are a couple of ways to add a login item to the application. The most used/useful way is using the Service Management framework. 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. The other way is using a shared file list. Login items installed using a shared file list are visible in System Preferences; users have direct control over them. If you use this API, your login item can be disabled by the user.

App Sandboxing

App Sandboxing

Blog Post

Please refer to full blog post for this example: https://jogendra.dev/implementing-launch-at-login-feature-in-macos-apps

License

This project is under MIT License. Please refer to LICENSE file for more info.

About

An example project demonstrating Launch at Login (launch application on system startup) feature implementation for macOS Apps in Swift.

Topics

Resources

License

Stars

Watchers

Forks

Languages