connectLaunched
fun connectLaunched(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (info: AppInfo, <Error class: unknown class>) -> Unit): <Error class: unknown class>
The #GAppLaunchContext::launched signal is emitted when a #GAppInfo is successfully launched. The @platform_data is an GVariant dictionary mapping strings to variants (ie a{sv}
), which contains additional, platform-specific data about this launch. On UNIX, at least the pid
and startup-notification-id
keys will be present.
Since 2.72 the pid
may be 0 if the process id wasn't known (for example if the process was launched via D-Bus). The pid
may not be set at all in subsequent releases.
Since
2.36
Parameters
connectFlags
A combination of ConnectFlags
handler
the Callback to connect. Params: info
the #GAppInfo that was just launched; platformData
additional platform-specific data for this launch