macos_open_at_login

A Flutter plugin to automatically launch your macOS app at login.

  • Requires macOS 13.0 or later
  • Supports Swift Package Manager

Usage

import 'package:macos_open_at_login/macos_open_at_login.dart';

// Get current status
final status = await MacosOpenAtLogin.getStatus();

// Enable / disable
await MacosOpenAtLogin.enable();
await MacosOpenAtLogin.disable();

// Open System Settings > General > Login Items
await MacosOpenAtLogin.openSystemSettings();

LoginItemStatus

Value Description
enabled Registered and will launch at login
requiresApproval Registered but requires user approval in System Settings
notRegistered Not registered
notFound The service could not be found