ForkOptions

external interface ForkOptions(source)

Properties

Link copied to clipboard

With this flag, the utility process will be launched via the Electron Helper (Plugin).app helper executable on macOS, which can be codesigned with com.apple.security.cs.disable-library-validation and com.apple.security.cs.allow-unsigned-executable-memory entitlements. This will allow the utility process to load unsigned libraries. Unless you specifically need this capability, it is best to leave this disabled. Default is false.

Link copied to clipboard
abstract var cwd: String?

Current working directory of the child process.

Link copied to clipboard
abstract var env: Env?

Environment key-value pairs. Default is process.env.

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

List of string arguments passed to the executable.

Link copied to clipboard
abstract var serviceName: String?

Name of the process that will appear in name property of ProcessMetric returned by app.getAppMetrics and child-process-gone event of app. Default is Node Utility Process.

Link copied to clipboard
abstract var stdio: Any?

Allows configuring the mode for stdout and stderr of the child process. Default is inherit. String value can be one of pipe, ignore, inherit, for more details on these values you can refer to stdio documentation from Node.js. Currently this option only supports configuring stdout and stderr to either pipe, inherit or ignore. Configuring stdin to any property other than ignore is not supported and will result in an error. For example, the supported values will be processed as following: