File virtman-add-connect-default.patch of Package virt-manager.15254

Enhancement for when no hypervisor can be found locally it opens
the new connection dialog.
Index: virt-manager-1.5.0/virtManager/engine.py
===================================================================
--- virt-manager-1.5.0.orig/virtManager/engine.py
+++ virt-manager-1.5.0/virtManager/engine.py
@@ -239,9 +239,6 @@ class vmmEngine(vmmGObject):
         except Exception:
             logging.exception("Error talking to PackageKit")
 
-        if tryuri is None:
-            tryuri = "qemu:///system"
-
         warnmsg = _("The 'libvirtd' service will need to be started.\n\n"
                     "After that, virt-manager will connect to libvirt on\n"
                     "the next application start up.")
@@ -255,7 +252,11 @@ class vmmEngine(vmmGObject):
             if not connected and do_start:
                 manager.err.ok(_("Libvirt service must be started"), warnmsg)
 
-        self.idle_add(idle_connect)
+        # If there is no default URI to be found, show the new connection dialog
+        if tryuri is None:
+            self._do_show_connect(self.windowManager)
+        else:
+            self.idle_add(idle_connect)
 
 
     def load_stored_uris(self):
openSUSE Build Service is sponsored by