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
Functions
The #GAppLaunchContext::launched signal is emitted when a #GAppInfo is successfully launched. The @platform_data is an GVariant dictionary mapping strings to variants (ie a{sv}
), which contains additional, platform-specific data about this launch. On UNIX, at least the pid
and startup-notification-id
keys will be present.
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.
The #GAppLaunchContext::launch-started signal is emitted when a #GAppInfo is about to be launched. If non-null the @platform_data is an GVariant dictionary mapping strings to variants (ie a{sv}
), which contains additional, platform-specific data about this launch. On UNIX, at least the startup-notification-id
keys will be present.
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 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 g_app_launch_context_get_startup_notify_id().