Do not exit if the accessibility bus disconnects
authorMike Gorse <mgorse@novell.com>
Fri, 4 Mar 2011 19:48:21 +0000 (13:48 -0600)
committerMike Gorse <mgorse@novell.com>
Fri, 4 Mar 2011 21:08:42 +0000 (15:08 -0600)
We should not exit if, for instance, the accessibility bus's daemon dies as
a result of the session ending; we should let GNOME's logic kill the
application in that case.  Also prevents the application from crashing if
atk-bridge sends bad data that causes the daemon to disconnect us.

atk-adaptor/bridge.c

index 0cb1f92..8bad17c 100644 (file)
@@ -165,6 +165,7 @@ spi_atk_bridge_get_bus (void)
               g_warning ("AT-SPI: Couldn't register with bus: %s\n", error.message);
               return NULL;
             }
+          dbus_connection_set_exit_on_disconnect (bus, FALSE);
         }
     }