mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
gdesktopappinfo: Set XDG_ACTIVATION_TOKEN/activation-token startup ID key
See: * https://gitlab.freedesktop.org/xdg/xdg-specs/-/blob/master/desktop-entry/desktop-entry-spec.xml#L1061-1068 * https://wayland.app/protocols/xdg-activation-v1 * https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/staging/xdg-activation/x11-interoperation.rst Fixes: #2709
This commit is contained in:
committed by
Philip Withnall
parent
24e1bfba16
commit
627f2738e0
@@ -304,6 +304,9 @@ app_get_platform_data (void)
|
||||
if ((startup_id = g_getenv ("DESKTOP_STARTUP_ID")))
|
||||
g_variant_builder_add (&builder, "{sv}", "desktop-startup-id", g_variant_new_string (startup_id));
|
||||
|
||||
if ((startup_id = g_getenv ("XDG_ACTIVATION_TOKEN")))
|
||||
g_variant_builder_add (&builder, "{sv}", "activation-token", g_variant_new_string (startup_id));
|
||||
|
||||
return g_variant_builder_end (&builder);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user