virt-manager/virtman-add-connect-default.patch
Cédric Bosdonnat f3b54e4f91 Accepting request 235124 from home:cbosdonnat:branches:Virtualization
- Improve virt-manager default connections at first start
  * virtman-default-lxc-uri.patch: when only libvirt's lxc driver
    is available locally, add lxc:///
  * virtman-add-connect-default.patch: when no hypervisor can be
    found locally, open the new connection dialog

OBS-URL: https://build.opensuse.org/request/show/235124
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=176
2014-05-22 15:22:21 +00:00

28 lines
1.1 KiB
Diff

Index: virt-manager-1.0.1/virtManager/engine.py
===================================================================
--- virt-manager-1.0.1.orig/virtManager/engine.py
+++ virt-manager-1.0.1/virtManager/engine.py
@@ -205,9 +205,6 @@ class vmmEngine(vmmGObject):
except:
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.")
@@ -221,7 +218,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):