Ilya Fedin
2022-11-25 22:01:10 +04:00
committed by Philip Withnall
parent 24e1bfba16
commit 627f2738e0
4 changed files with 39 additions and 11 deletions

View File

@@ -226,13 +226,24 @@ test_application_before_emit (GApplication *application,
GVariant *platform_data)
{
const gchar *startup_id;
gsize i;
g_assert (!saw_startup_id);
if (!g_variant_lookup (platform_data, "desktop-startup-id", "&s", &startup_id))
return;
const gchar *startup_id_keys[] = {
"desktop-startup-id",
"activation-token",
NULL,
};
for (i = 0; startup_id_keys[i] != NULL; i++)
{
if (!g_variant_lookup (platform_data, startup_id_keys[i], "&s", &startup_id))
return;
g_assert_cmpstr (startup_id, ==, "expected startup id");
}
g_assert_cmpstr (startup_id, ==, "expected startup id");
saw_startup_id = TRUE;
}