[orca] Fix traceback from dbus server



commit 0d61aed8a02bf6d3aa5edb6519ce50f106cea68c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Feb 10 13:39:24 2012 -0500

    Fix traceback from dbus server

 src/orca/settings_manager.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index a8cc33f..edd25f4 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -31,6 +31,7 @@ __license__   = "LGPL"
 import dbus
 import os
 import imp
+from dbus.mainloop.glib import DBusGMainLoop
 from json import load
 
 import debug
@@ -38,7 +39,8 @@ from keybindings import KeyBinding
 import settings
 import pronunciation_dict
 
-_bus = dbus.SessionBus()
+_dbusLoop = DBusGMainLoop()
+_bus = dbus.SessionBus(mainloop=_dbusLoop)
 _proxy = _bus.get_object("org.a11y.Bus", "/org/a11y/bus")
 _desktopProps = \
     dbus.Interface(_proxy, dbus_interface='org.freedesktop.DBus.Properties')



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