[at-spi2-atk] Do not exit if the accessibility bus disconnects



commit df5695a948da0886dd506430959d4de88a940eb9
Author: Mike Gorse <mgorse novell com>
Date:   Fri Mar 4 13:48:21 2011 -0600

    Do not exit if the accessibility bus disconnects
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index 0cb1f92..8bad17c 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -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);
         }
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]