[PATCH virt-manager] Add host name to window title

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reports also host name in the title of machine properties window. Helps to
differentiate between machines with similar names on different hosts.

Signed-off-by: Pavel Fedin <p.fedin@xxxxxxxxxxx>
---
 virtManager/console.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/console.py b/virtManager/console.py
index b07ae72..2f14bcc 100644
--- a/virtManager/console.py
+++ b/virtManager/console.py
@@ -215,7 +215,7 @@ class vmmConsolePages(vmmGObjectUI):
     #################
 
     def _change_title(self, ignore1=None):
-        title = self.vm.get_name_or_title() + " " + _("Virtual Machine")
+        title = self.vm.get_name_or_title() + " " + _("Virtual Machine") + " @ " + self.vm.conn.libvirt_gethostname()
 
         if self._pointer_is_grabbed and self._viewer:
             keystr = self._viewer.console_get_grab_keys()
-- 
2.1.4

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux