From cda1dd81f95ab335389eadfbdfe33e49785d6bb2 Mon Sep 17 00:00:00 2001 From: Marc Deslauriers Date: Mon, 13 Feb 2012 15:10:00 -0500 Subject: [PATCH] Fix dbus deprecation warning (crobinso: fixed conflict, simplified import) --- src/virt-manager.py.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/virt-manager.py.in b/src/virt-manager.py.in index 464cf02bc..18f407ef0 100755 --- a/src/virt-manager.py.in +++ b/src/virt-manager.py.in @@ -302,8 +302,9 @@ def main(): gobject.threads_init() import dbus - import dbus.glib - dbus.glib.threads_init() + import dbus.mainloop.glib + dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) + dbus.mainloop.glib.threads_init() import dbus.service # Specifically init config/gconf before the fork, so that pam