AppLaunchContext
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.
Constructors
Creates a new application launch context. This is not normally used, instead you instantiate a subclass of this, such as GdkAppLaunchContext
.
Functions
The signal@Gio.AppLaunchContext::launched signal is emitted when a iface@Gio.AppInfo is successfully launched.
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.
The signal@Gio.AppLaunchContext::launch-started signal is emitted when a iface@Gio.AppInfo is about to be launched. If non-null the
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.
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 form KEY=VALUE
.
Initiates startup notification for the application and returns the XDG_ACTIVATION_TOKEN
or DESKTOP_STARTUP_ID
for the launched operation, if supported.
Called when an application has failed to launch, so that it can cancel the application startup notification started in method@Gio.AppLaunchContext.get_startup_notify_id.