Settings

external interface Settings(source)

Properties

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

The command-line arguments to pass to the executable. Defaults to an empty array. Take care to wrap paths in quotes.

Link copied to clipboard
abstract external var enabled: Boolean?

true will change the startup approved registry key and enable / disable the App in Task Manager and Windows Settings. Defaults to true.

Link copied to clipboard
abstract external var name: String?

value name to write into registry. Defaults to the app's AppUserModelId().

Link copied to clipboard
abstract external var openAtLogin: Boolean?

true to open the app at login, false to remove the app as a login item. Defaults to false.

Link copied to clipboard
abstract external var path: String?

The executable to launch at login. Defaults to process.execPath.

Link copied to clipboard
abstract external var serviceName: String?

The name of the service. Required if type is non-default.

Link copied to clipboard
abstract external var type: SettingsType?

The type of service to add as a login item. Defaults to mainAppService.