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.
This commit is contained in:
Barnabás Pőcze 2023-01-08 19:51:38 +01:00 committed by Mat
parent 6a991cf05a
commit a4758db75e

View File

@ -690,7 +690,8 @@ gtk_at_spi_root_constructed (GObject *gobject)
/* No need to validate the path */ /* No need to validate the path */
self->base_path = g_strconcat (app_path, "/a11y", NULL); self->base_path = g_strconcat (app_path, "/a11y", NULL);
} }
else
if (self->base_path == NULL)
{ {
const char *program_name = g_get_prgname (); const char *program_name = g_get_prgname ();