[virt-tools-list] [PATCH] Update warning msg in virt-viewer's window

Snir Sheriber ssheribe at redhat.com
Tue Dec 27 09:57:02 UTC 2016


Warning "Display can only be attached through libvirt with --attach" is
now appears also in virt-viewer's window (as in the cmd prompt) when
virt-viewer is waiting without --attach and then the guest starts
(instead of showing "Waiting for guest domain to start")

rhbz#1386630
---
 src/virt-viewer-app.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index bf32315..01392f3 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1219,6 +1219,7 @@ virt_viewer_app_default_activate(VirtViewerApp *self, GError **error)
     } else {
         g_set_error_literal(error, VIRT_VIEWER_ERROR, VIRT_VIEWER_ERROR_FAILED,
                             _("Display can only be attached through libvirt with --attach"));
+        virt_viewer_app_show_status(self, _("Display can only be attached through libvirt with --attach"));
    }
 
     return FALSE;
-- 
2.9.3




More information about the virt-tools-list mailing list