Header menu logo fable-electron-docs-api

Options Type

Constructors

Constructor Description

Options(?type, ?serviceName, ?path, ?args)

Full Usage: Options(?type, ?serviceName, ?path, ?args)

Parameters:
    ?type : string - ⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ || Can be one of mainAppService, agentService, daemonService, or loginItemService. Defaults to mainAppService. Only available on macOS 13 and up. See app.setLoginItemSettings for more information about each type.
    ?serviceName : string - ⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ || The name of the service. Required if type is non-default. Only available on macOS 13 and up.
    ?path : string - ⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ || The executable path to compare against. Defaults to process.execPath.
    ?args : string[] - ⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ || The command-line arguments to compare against. Defaults to an empty array.

Returns: Options
?type : string

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ || Can be one of mainAppService, agentService, daemonService, or loginItemService. Defaults to mainAppService. Only available on macOS 13 and up. See app.setLoginItemSettings for more information about each type.

?serviceName : string

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ || The name of the service. Required if type is non-default. Only available on macOS 13 and up.

?path : string

⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ || The executable path to compare against. Defaults to process.execPath.

?args : string[]

⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ || The command-line arguments to compare against. Defaults to an empty array.

Returns: Options

Instance members

Instance member Description

this.args

Full Usage: this.args

⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ The command-line arguments to compare against. Defaults to an empty array.

this.path

Full Usage: this.path

⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ The executable path to compare against. Defaults to process.execPath.

this.serviceName

Full Usage: this.serviceName

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ The name of the service. Required if type is non-default. Only available on macOS 13 and up.

this.type

Full Usage: this.type

⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Can be one of mainAppService, agentService, daemonService, or loginItemService. Defaults to mainAppService. Only available on macOS 13 and up. See app.setLoginItemSettings for more information about each type.

Type something to start searching.