From f2da834e1de90d02f86a64fc40de6d52f8f5ebcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 12 Nov 2010 17:05:48 +0100 Subject: [PATCH] Show console if SPICE enabled. --- src/virtManager/create.py | 2 +- src/virtManager/manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtManager/create.py b/src/virtManager/create.py index d4d8bdcec..172faf7c8 100644 --- a/src/virtManager/create.py +++ b/src/virtManager/create.py @@ -1601,7 +1601,7 @@ class vmmCreate(vmmGObjectUI): if self.config.get_console_popup() == 1: # user has requested console on new created vms only gtype = vm.get_graphics_console()[0] - if gtype == "vnc": + if gtype in ["vnc", "spice"]: self.emit("action-show-console", self.conn.get_uri(), guest.uuid) else: diff --git a/src/virtManager/manager.py b/src/virtManager/manager.py index ca7a84c57..a18d9604a 100644 --- a/src/virtManager/manager.py +++ b/src/virtManager/manager.py @@ -721,7 +721,7 @@ class vmmManager(vmmGObjectUI): if self.config.get_console_popup() == 2 and not vm.is_management_domain(): # user has requested consoles on all vms gtype = vm.get_graphics_console()[0] - if gtype == "vnc": + if gtype in ["vnc", "spice"]: self.emit("action-show-console", uri, vmuuid) elif not connection.is_remote(): self.emit("action-show-terminal", uri, vmuuid)