Skip to main content

Function: start()

start(appId, flags?): Application

Defined in: packages/ffi/src/native.ts:48

Starts the GTK application with the given application ID. Sets up a keep-alive timer to prevent Node.js from exiting. This function is idempotent - calling it multiple times returns the existing app.

Parameters

ParameterTypeDescription
appIdstringThe application ID (e.g., "com.example.myapp")
flags?ApplicationFlagsOptional GIO application flags

Returns

Application

The GTK Application instance