summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b12cdda)
Previously, AT-SPI would wind up passing a NULL connection to libdbus if it
couldn't connect to the bus, causing a cryptic abort. This change makes it
at least abort with a sensible error message in that case.
Also, if unable to find the accessibility bus address via the session bus,
save and print the DBusError, if any.
{
if (!bus)
atspi_init ();
{
if (!bus)
atspi_init ();
+ if (!bus)
+ g_error ("AT-SPI: COuldn't connect to accessibility bus. Is at-spi-bus-launcher running?");
DBusConnection *session_bus = NULL;
DBusMessage *message;
DBusMessage *reply;
DBusConnection *session_bus = NULL;
DBusMessage *message;
DBusMessage *reply;
char *address = NULL;
session_bus = dbus_bus_get (DBUS_BUS_SESSION, NULL);
char *address = NULL;
session_bus = dbus_bus_get (DBUS_BUS_SESSION, NULL);
"org.a11y.Bus",
"GetAddress");
"org.a11y.Bus",
"GetAddress");
+ dbus_error_init (&error);
reply = dbus_connection_send_with_reply_and_block (session_bus,
message,
-1,
reply = dbus_connection_send_with_reply_and_block (session_bus,
message,
-1,
dbus_message_unref (message);
if (!reply)
dbus_message_unref (message);
if (!reply)
+ {
+ g_warning ("Error retrieving accessibility bus address: %s: %s",
+ error.name, error.message);
+ dbus_error_init (&error);
{
const char *tmp_address;
{
const char *tmp_address;