# sindresorhus/LaunchAtLogin-Legacy

Add “Launch at Login” functionality to your macOS app in seconds

Repository: https://github.com/sindresorhus/LaunchAtLogin-Legacy
Canonical: https://ross.abutalabs.com/products/launchatlogin-legacy
Language: Swift
License: MIT
License Family: permissive
Topics: macos, swift, swift-package
Archived: true
Last push: 2024-06-25T00:03:49+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3321, "days_push": 800, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1618, forks 124 (observed 2026-08-28T04:05:12.097117+00:00)

## What it is
A Swift Package that adds 'Launch at Login' functionality to macOS apps with a simple API and SwiftUI toggle component. It supports macOS 10.13+ using SMLoginItemSetEnabled on older systems and SMAppService on macOS 13+, working with both sandboxed and App Store apps.

## Use cases
- add launch at login to my mac app
- make my app start automatically on login
- swiftui toggle for launch at login
- app store compatible login item for sandboxed mac app
- backwards compatible launch on startup for macOS 10.13

## When to choose
- your macOS app targets versions older than macOS 13
- you want a simple, App Store-compatible launch-at-login implementation
- you want a ready-made SwiftUI toggle for the setting

## When to avoid
- your app targets macOS 13 or later (use LaunchAtLogin-Modern instead)
- you need launch-at-login on non-macOS platforms

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, developer-tools
- domain: operating-systems, developer-tools, desktop-applications
- platform: -
- tags: launch-at-login, swift-package-manager, login-item, macos-apps, swiftui, macos, swift

## Member repositories
- sindresorhus/LaunchAtLogin-Legacy (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:12.097117+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:49:39.201254+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/LaunchAtLogin-Legacy (fetched 2026-08-28T04:05:12.097117+00:00, sha f60fc0e1236a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
