AppLaunchContext.connectLaunchFailed
gulong connectLaunchFailed(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.app_launch_context.AppLaunchContext)))
&& Parameters!T.length < 3)Connect to LaunchFailed signal.
The #GAppLaunchContext::launch-failed signal is emitted when a #GAppInfo 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.
Parameters
callback | signal callback delegate or function to connect void callback(string startupNotifyId, gio.app_launch_context.AppLaunchContext appLaunchContext) startupNotifyId the startup notification id for the failed launch (optional) appLaunchContext the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID