Adds the VM name to the title for the spice clent, making it easier to
identify in window lists etc.
--
Lindsay
From 6612a674109a5e2292e7afdc3fb5986564282370 Mon Sep 17 00:00:00 2001
From: Lindsay Mathieson <[email protected]>
Date: Thu, 16 Jan 2014 23:21:05 +1000
Subject: [PATCH] Adds the VM name to the title for the spice clent, making it
 easier to identify which in window lists etc.


Signed-off-by: Lindsay Mathieson <[email protected]>
---
 PVE/API2/Qemu.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
index d038b06..76f61f5 100644
--- a/PVE/API2/Qemu.pm
+++ b/PVE/API2/Qemu.pm
@@ -1375,7 +1375,8 @@ __PACKAGE__->register_method({
 	my $node = $param->{node};
 	my $proxy = $param->{proxy};

-	my $title = "VM $vmid";
+    my $conf = PVE::QemuServer::load_config($vmid, $node);
+    my $title = "VM $vmid - $conf->{'name'}",

 	my $port = PVE::QemuServer::spice_port($vmid);

--
1.7.10.4

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
pve-devel mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to