getLoginItemSettings

abstract external fun getLoginItemSettings(options: LoginItemSettingsOptions = definedExternally): LoginItemSettings(source)

If you provided path and args options to app.setLoginItemSettings, then you need to pass the same arguments here for openAtLogin to be set correctly.

  • openAtLogin boolean - true if the app is set to open at login.

  • wasOpenedAtLogin boolean macOS - true if the app was opened at login automatically.

  • status string macOS - can be not-registered, enabled, requires-approval, or not-found.

  • executableWillLaunchAtLogin boolean Windows - true if app is set to open at login and its run key is not deactivated. This differs from openAtLogin as it ignores the args option, this property will be true if the given executable would be launched at login with any arguments.

  • launchItems Object[] Windows

  • name string Windows - name value of a registry entry.

  • path string Windows - The executable to an app that corresponds to a registry entry.

  • args string[] Windows - the command-line arguments to pass to the executable.

  • scope string Windows - can be user or machine. Indicates whether the registry entry is under HKEY_CURRENT USER or HKEY_LOCAL_MACHINE.

  • enabled boolean Windows - true if the app registry key is startup approved and therefore shows as enabled in Task Manager and Windows settings.