Gdk.X11X11AppLaunchContext

描述

final class GdkX11.X11AppLaunchContext : Gdk.AppLaunchContext
{
  /* No available fields */
}

暂无描述。

实例方法

继承自 GdkAppLaunchContext 的方法(5个)
gdk_app_launch_context_get_display

获取与 context 相关的 GdkDisplay

gdk_app_launch_context_set_desktop

设置应用程序启动的工作区。

gdk_app_launch_context_set_icon

设置使用此 context 启动应用程序的图标。

gdk_app_launch_context_set_icon_name

设置使用此 context 启动应用程序的图标。

gdk_app_launch_context_set_timestamp

设置 context 的时间戳。

继承自 GAppLaunchContext 的方法(6个)
g_app_launch_context_get_display

获取 context 的显示字符串。这用于确保新应用程序与启动应用程序在同一个显示上启动,通过设置环境变量 DISPLAY

g_app_launch_context_get_environment

获取使用 context 启动应用程序时传递给子进程的完整环境变量列表。这是一个以 NULL 结尾的字符串数组,其中每个字符串具有 KEY=VALUE 的形式。

g_app_launch_context_get_startup_notify_id

启动应用程序的启动通知,并返回支持的操作的 XDG_ACTIVATION_TOKENDESKTOP_STARTUP_ID

g_app_launch_context_launch_failed

当应用程序启动失败时调用,以便取消由 g_app_launch_context_get_startup_notify_id() 启动的应用程序启动通知。

g_app_launch_context_setenv

当使用 context 启动应用程序时,安排在子环境中将 variable 设置为 value

g_app_launch_context_unsetenv

当使用 context 启动应用程序时,安排在子环境中取消设置 variable

继承自 GObject 的方法(43个)

请参阅 GObject 了解所有方法。

属性

继承自 GdkAppLaunchContext 的属性(1个)
Gdk.AppLaunchContext:display

GdkAppLaunchContext 所在的显示。

信号

继承自 GAppLaunchContext 的信号(3个)
GAppLaunchContext::launch-failed

GAppInfo 启动失败时发出 GAppLaunchContext::launch-failed 信号。提供了启动通知 ID,以便启动器可以取消启动通知。

GAppLaunchContext::launch-started

当即将启动 GAppInfo 时发出 GAppLaunchContext::launch-started 信号。如果非空,platform_data 是一个将字符串映射到变体的 GVariant 字典(即 a{sv}),其中包含有关此次启动的附加、平台特定的数据。在 UNIX 上,至少会存在 startup-notification-id 键。

GAppLaunchContext::launched

GAppLaunchContext::launched 信号会在成功启动一个 GAppInfo 时发出。

GObject 继承的信号(1)
GObject::notify

当对象的一个属性通过 g_object_set_property(),g_object_set() 等方式设置值时,会发出 notify 信号。

类结构

struct GdkX11X11AppLaunchContextClass {
  /* no available fields */
}

暂无描述。