summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2021-12-03 15:48:06 -0600
committerFederico Mena Quintero <federico@gnome.org>2021-12-13 16:36:39 -0600
commit26f75dc00eb16ccec89561aefe15f4036d45b4ec (patch)
tree7e9a2d2dd93307f18e3480f5517d108ead8deb26 /bus
parent1f455b5ba753a1cda27cc39f51308ec056f778e6 (diff)
downloadat-spi2-core-26f75dc00eb16ccec89561aefe15f4036d45b4ec.tar.gz
bus: Abort if we cannot get the default GSettingsSchemaSource
This indicates an incorrect installation. If we proceed, there are critical warnings like (process:985): GLib-GIO-CRITICAL **: 20:10:12.875: g_settings_schema_source_lookup: assertion 'source != NULL' failed and nothing works past that.
Diffstat (limited to 'bus')
-rw-r--r--bus/at-spi-bus-launcher.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index b0ccab67..13f7d3bb 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -851,6 +851,11 @@ get_schema (const gchar *name)
{
#if GLIB_CHECK_VERSION (2, 32, 0)
GSettingsSchemaSource *source = g_settings_schema_source_get_default ();
+ if (!source)
+ {
+ g_error ("Cannot get the default GSettingsSchemaSource - is the gsettings-desktop-schemas package installed?");
+ }
+
GSettingsSchema *schema = g_settings_schema_source_lookup (source, name, FALSE);
if (schema == NULL)