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
GType _getGType() static nothrow
GType _gType() @property nothrow
AppLaunchContext self() nothrowReturns `this`, for use in `with` statements.
AppLaunchContextGidBuilder builder() static nothrowGet builder for [gio.app_launch_context.AppLaunchContext] Returns: New builder object
string getDisplay(gio.app_info.AppInfo info, gio.file.File[] files) nothrowGets 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() nothrowGets 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) nothrowInitiates startup notification for the application and returns the `XDG_ACTIVATION_TOKEN` or `DESKTOP_STARTUP_ID` for the launched operation, if supported.
void launchFailed(string startupNotifyId) nothrowCalled when an application has failed to launch, so that it can cancel the application startup notification started in [gio.app_launch_context.AppLaunchContext.getStartupNotifyId].
void setenv(string variable, string value) nothrowArranges for variable to be set to value in the child's environment when context is used to launch an application.
void unsetenv(string variable) nothrowArranges 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect to `Launched` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new application launch context. This is not normally used, instead you instantiate a subclass of this, such as #GdkAppLaunchContext. Returns: a #GAppLaunchContext.