mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Show console if SPICE enabled.
This commit is contained in:
parent
5e6cabc4b3
commit
f2da834e1d
@ -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:
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user