LoginItemSettingsOptions

external interface LoginItemSettingsOptions(source)

Properties

Link copied to clipboard
abstract external var args: ReadonlyArray<String>?

The command-line arguments to compare against. Defaults to an empty array.

Link copied to clipboard
abstract external var path: String?

The executable path to compare against. Defaults to process.execPath.

Link copied to clipboard
abstract external var serviceName: String?

The name of the service. Required if type is non-default. Only available on macOS 13 and up.

Link copied to clipboard
abstract external var type: LoginItemSettingsOptionsType?

Can be mainAppService, agentService, daemonService, or loginItemService. Defaults to mainAppService. Only available on macOS 13 and up. See app.setLoginItemSettings for more information about each type.