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

Pavel Fedin p.fedin at samsung.com
Fri Aug 14 09:08:28 UTC 2015


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 at samsung.com>
---
 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




More information about the virt-tools-list mailing list