gio.app_launch_context
Module for [AppLaunchContext] class
Types 3
Integrating the launch with the launching application. This is used to handle for instance startup notification and launching the new application on the same screen as the launching window.
Methods
AppLaunchContext self()Returns `this`, for use in `with` statements.AppLaunchContextGidBuilder builder()Get builder for [gio.applaunchcontext.AppLaunchContext] Returns: New builder objectstring getDisplay(gio.app_info.AppInfo info, gio.file.File[] files)Gets the display string for the context. This is used to ensure new applications are started on the same display as the launching application, by setting the `DISPLAY` environment variable.string[] getEnvironment()Gets the complete environment variable list to be passed to the child process when context is used to launch an application. This is a null-terminated array of strings, where each string has the fo...string getStartupNotifyId(gio.app_info.AppInfo info, gio.file.File[] files)Initiates startup notification for the application and returns the `XDGACTIVATIONTOKEN` or `DESKTOPSTARTUPID` for the launched operation, if supported.void launchFailed(string startupNotifyId)Called when an application has failed to launch, so that it can cancel the application startup notification started in [gio.applaunchcontext.AppLaunchContext.getStartupNotifyId].void setenv(string variable, string value)Arranges for variable to be set to value in the child's environment when context is used to launch an application.void unsetenv(string variable)Arranges for variable to be unset in the child's environment when context is used to launch an application.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.gulong connectLaunchStarted(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] : gio.app_info.AppInfo)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == glib.variant.Variant)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gio.app_launch_context.AppLaunchContext)))
&& Parameters!T.length < 4)Connect to `LaunchStarted` signal.gulong connectLaunched(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] : gio.app_info.AppInfo)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == glib.variant.Variant)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gio.app_launch_context.AppLaunchContext)))
&& Parameters!T.length < 4)Connect to `Launched` signal.Fluent builder for [gio.app_launch_context.AppLaunchContext]
Methods