Options Type
Constructors
| Constructor |
Description
|
Full Usage:
Options(?type, ?serviceName, ?path, ?args)
Parameters:
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
|
Full Usage:
this.args
|
⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ The command-line arguments to compare against. Defaults to an empty array. |
Full Usage:
this.path
|
⚠ OS Compatibility: WIN ✔ | MAC ❌ | LIN ❌ | MAS ❌ The executable path to compare against. Defaults to process.execPath. |
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. |
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. |
fable-electron-docs-api