Fix for invalid at-spi configuration 08/200808/2 accepted/tizen/unified/20190327.160535 submit/tizen/20190311.042353 submit/tizen/20190311.104527 submit/tizen/20190314.062257 submit/tizen/20190314.080413 submit/tizen/20190314.103410 submit/tizen/20190318.043555 submit/tizen/20190318.114709 submit/tizen/20190319.041006 submit/tizen/20190327.041330
authorRadoslaw Cybulski <r.cybulski@partner.samsung.com>
Mon, 4 Mar 2019 12:09:32 +0000 (13:09 +0100)
committerRadoslaw Cybulski <r.cybulski@partner.samsung.com>
Tue, 5 Mar 2019 10:50:28 +0000 (11:50 +0100)
Fixes not working configuration (dbus-daemon binary not found), which
caused at-spi2-bus-launcher not to start.
Fixes crash due to missing schema for GSetting.

Change-Id: I5f1692144b4c7487f33739832780224707be001c

bus/at-spi-bus-launcher.c
packaging/at-spi2-core.spec

index f8ae02b..e42a26d 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
- * 
- * at-spi-bus-launcher: Manage the a11y bus as a child process 
+ *
+ * at-spi-bus-launcher: Manage the a11y bus as a child process
  *
  * Copyright 2011-2018 Red Hat, Inc.
  *
@@ -929,6 +929,8 @@ get_schema (const gchar *name)
 {
 #if GLIB_CHECK_VERSION (2, 32, 0)
   GSettingsSchemaSource *source = g_settings_schema_source_get_default ();
+  if (!source) return NULL;
+
   GSettingsSchema *schema = g_settings_schema_source_lookup (source, name, FALSE);
 
   if (schema == NULL)
index b4ac7f0..7981bc8 100644 (file)
@@ -73,7 +73,7 @@ to develop applications that require these.
 cp %{SOURCE1001} .
 
 %build
-meson --prefix /usr/ build -Dwith-dbus-daemondir=%{_bindir} \
+meson --prefix /usr/ build -Dwith-dbus-daemondir=%{_bindir} -Ddbus_daemon=/usr/bin/dbus-daemon \
 %if !%{with x}
         -Denable-x11=no \
 %else