https://github.com/clipy/loginservicekit
Easy manage login items for macOS. Not support Sandbox application.
https://github.com/clipy/loginservicekit
clipy login login-system macos swift
Last synced: 7 months ago
JSON representation
Easy manage login items for macOS. Not support Sandbox application.
- Host: GitHub
- URL: https://github.com/clipy/loginservicekit
- Owner: Clipy
- License: apache-2.0
- Created: 2016-04-05T14:33:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-27T02:06:30.000Z (over 1 year ago)
- Last Synced: 2025-09-10T22:49:31.623Z (8 months ago)
- Topics: clipy, login, login-system, macos, swift
- Language: Swift
- Homepage: https://clipy-app.com
- Size: 97.7 KB
- Stars: 120
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LoginServiceKit

[]()
[](https://github.com/Clipy/LoginServiceKit/blob/master/LICENSE)
[](https://github.com/Carthage/Carthage)
[](https://swift.org/package-manager)
Easy manage login items for macOS. **Not support Sandbox application.**
## Usage
### CocoaPods
```
pod 'LoginServiceKit', :git => 'https://github.com/Clipy/LoginServiceKit'
```
### Carthage
```
github "Clipy/LoginServiceKit"
```
## Example
#### Check exist login item
```swift
let isExistLoginItem = LoginServiceKit.isExistLoginItems() // default Bundle.main.bundlePath
```
or
```swift
let isExistLoginItem = LoginServiceKit.isExistLoginItems(at: Bundle.main.bundlePath)
```
#### Add login item
```swift
LoginServiceKit.addLoginItems() // default Bundle.main.bundlePath
```
or
```swift
LoginServiceKit.addLoginItems(at: Bundle.main.bundlePath)
```
#### Remove login item
```swift
LoginServiceKit.removeLoginItems() // default Bundle.main.bundlePath
```
or
```swift
LoginServiceKit.removeLoginItems(at: Bundle.main.bundlePath)
```
## About Deprecated APIs
LoginServiceKit uses an API that has been deprecated since macOS 10.11 El Capitan. However, there is no API migration destination that meets the current specifications.
Therefore, this library will be discontinued when the API used is discontinued.
See this [issue](https://github.com/Clipy/LoginServiceKit/issues/10) for more details.