AppLaunchContext

open class AppLaunchContext(pointer: <Error class: unknown class><<Error class: unknown class>>)

GdkAppLaunchContext handles launching an application in a graphical context.

It is an implementation of GAppLaunchContext that provides startup notification and allows to launch applications on a specific workspace.

Launching an application

GdkAppLaunchContext *context;

context = gdk_display_get_app_launch_context (display);

gdk_app_launch_context_set_timestamp (gdk_event_get_time (event));

if (!g_app_info_launch_default_for_uri ("http://www.gtk.org", context, &error))
g_warning ("Launching failed: %s\n", error->message);

g_object_unref (context);

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val display: Display

The display that the GdkAppLaunchContext is on.

Link copied to clipboard
val gdkAppLaunchContextPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun setDesktop(desktop: <Error class: unknown class>)

Sets the workspace on which applications will be launched.

Link copied to clipboard
open fun setIcon(icon: <Error class: unknown class>? = null)

Sets the icon for applications that are launched with this context.

Link copied to clipboard
open fun setIconName(iconName: String? = null)

Sets the icon for applications that are launched with this context.

Link copied to clipboard
open fun setTimestamp(timestamp: <Error class: unknown class>)

Sets the timestamp of @context.