2015-05-04 22:15:01 +02:00
|
|
|
Enhancement for when no hypervisor can be found locally it opens
|
|
|
|
the new connection dialog.
|
2017-08-09 21:02:00 +02:00
|
|
|
Index: virt-manager-1.4.2/virtManager/engine.py
|
2014-05-22 17:22:21 +02:00
|
|
|
===================================================================
|
2017-08-09 21:02:00 +02:00
|
|
|
--- virt-manager-1.4.2.orig/virtManager/engine.py
|
|
|
|
+++ virt-manager-1.4.2/virtManager/engine.py
|
2016-01-12 21:36:29 +01:00
|
|
|
@@ -236,9 +236,6 @@ class vmmEngine(vmmGObject):
|
2017-08-09 21:02:00 +02:00
|
|
|
except Exception:
|
2014-05-22 17:22:21 +02:00
|
|
|
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.")
|
2016-01-12 21:36:29 +01:00
|
|
|
@@ -252,7 +249,11 @@ class vmmEngine(vmmGObject):
|
2014-05-22 17:22:21 +02:00
|
|
|
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):
|