Show console if SPICE enabled.

This commit is contained in:
Marc-André Lureau 2010-11-12 17:05:48 +01:00
parent 5e6cabc4b3
commit f2da834e1d
2 changed files with 2 additions and 2 deletions

View File

@ -1601,7 +1601,7 @@ class vmmCreate(vmmGObjectUI):
if self.config.get_console_popup() == 1: if self.config.get_console_popup() == 1:
# user has requested console on new created vms only # user has requested console on new created vms only
gtype = vm.get_graphics_console()[0] gtype = vm.get_graphics_console()[0]
if gtype == "vnc": if gtype in ["vnc", "spice"]:
self.emit("action-show-console", self.conn.get_uri(), self.emit("action-show-console", self.conn.get_uri(),
guest.uuid) guest.uuid)
else: else:

View File

@ -721,7 +721,7 @@ class vmmManager(vmmGObjectUI):
if self.config.get_console_popup() == 2 and not vm.is_management_domain(): if self.config.get_console_popup() == 2 and not vm.is_management_domain():
# user has requested consoles on all vms # user has requested consoles on all vms
gtype = vm.get_graphics_console()[0] gtype = vm.get_graphics_console()[0]
if gtype == "vnc": if gtype in ["vnc", "spice"]:
self.emit("action-show-console", uri, vmuuid) self.emit("action-show-console", uri, vmuuid)
elif not connection.is_remote(): elif not connection.is_remote():
self.emit("action-show-terminal", uri, vmuuid) self.emit("action-show-terminal", uri, vmuuid)