From: Barnabás Pőcze Date: Sun, 8 Jan 2023 18:51:38 +0000 (+0100) Subject: a11y: Use fallback logic when GApplication has no DBus object path X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~8^2~81^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f2593dec4b2bedf5f2d65ce02c22bbd4ffed6cf7;p=gtk4.git 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. --- 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 ();