https://github.com/jogendra/launch-at-login-macos
An example project demonstrating Launch at Login (launch application on system startup) feature implementation for macOS Apps in Swift.
https://github.com/jogendra/launch-at-login-macos
macos osx swift swift5 swiftui xcode
Last synced: 12 months ago
JSON representation
An example project demonstrating Launch at Login (launch application on system startup) feature implementation for macOS Apps in Swift.
- Host: GitHub
- URL: https://github.com/jogendra/launch-at-login-macos
- Owner: jogendra
- License: mit
- Created: 2020-09-19T14:08:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T07:44:21.000Z (over 5 years ago)
- Last Synced: 2025-04-07T02:33:57.616Z (about 1 year ago)
- Topics: macos, osx, swift, swift5, swiftui, xcode
- Language: Swift
- Homepage: https://jogendra.dev/implementing-launch-at-login-feature-in-macos-apps
- Size: 18.6 KB
- Stars: 29
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://developer.apple.com/documentation/servicemanagement). 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

### Blog Post
Please refer to full blog post for this example: [https://jogendra.dev/implementing-launch-at-login-feature-in-macos-apps](https://jogendra.dev/implementing-launch-at-login-feature-in-macos-apps)
## License
This project is under MIT License. Please refer to [LICENSE](LICENSE) file for more info.