8f227e7
diff -rup virt-manager-0.5.4.orig/src/virtManager/connection.py virt-manager-0.5.4/src/virtManager/connection.py
8f227e7
--- virt-manager-0.5.4.orig/src/virtManager/connection.py	2008-03-10 20:17:51.000000000 -0400
8f227e7
+++ virt-manager-0.5.4/src/virtManager/connection.py	2008-03-13 13:51:14.000000000 -0400
8f227e7
@@ -336,6 +336,9 @@ class vmmConnection(gobject.GObject):
8f227e7
         self.connectThread.start()
8f227e7
 
8f227e7
     def _do_creds_polkit(self, action):
8f227e7
+        if os.getuid() == 0:
8f227e7
+            logging.debug("Skipping policykit check as root")
8f227e7
+            return 0
8f227e7
         logging.debug("Doing policykit for %s" % action)
8f227e7
         bus = dbus.SessionBus()
8f227e7
         obj = bus.get_object("org.gnome.PolicyKit", "/org/gnome/PolicyKit/Manager")
8f227e7
Only in virt-manager-0.5.4/src/virtManager: connection.py~