connectLaunchFailed

fun connectLaunchFailed(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (startupNotifyId: String) -> Unit): <Error class: unknown class>

The signal@Gio.AppLaunchContext::launch-failed signal is emitted when a iface@Gio.AppInfo launch fails. The startup notification id is provided, so that the launcher can cancel the startup notification.

Because a launch operation may involve spawning multiple instances of the target application, you should expect this signal to be emitted multiple times, one for each spawned instance.

Since

2.36

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: startupNotifyId the startup notification id for the failed launch