From a4758db75eadadb789633662ef03372edb15b729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sun, 8 Jan 2023 19:51:38 +0100 Subject: [PATCH] a11y: Use fallback logic when GApplication has no DBus object path Use the fallback logic to generate the base path for the GtkAtSpiRoot if the GApplication has no DBus object path to guarantee that the base path will not stay NULL. --- gtk/a11y/gtkatspiroot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c index b39d0938d4..78c4d7c0de 100644 --- a/gtk/a11y/gtkatspiroot.c +++ b/gtk/a11y/gtkatspiroot.c @@ -690,7 +690,8 @@ gtk_at_spi_root_constructed (GObject *gobject) /* No need to validate the path */ self->base_path = g_strconcat (app_path, "/a11y", NULL); } - else + + if (self->base_path == NULL) { const char *program_name = g_get_prgname ();