Skip to content

jogendra/launch-at-login-macos

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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