[virt-tools-list] [virt-viewer: PATCH 2/3] Use 'username' property from .vv file
Fabiano Fidêncio
fidencio at redhat.com
Wed Oct 1 14:41:29 UTC 2014
---
src/virt-viewer-session-spice.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 41a9a49..399e9a6 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -348,6 +348,13 @@ fill_session(VirtViewerFile *file, SpiceSession *session)
g_object_set(G_OBJECT(session), "tls-port", tls_port, NULL);
g_free(tls_port);
}
+
+ if (virt_viewer_file_is_set(file, "username")) {
+ gchar *val = virt_viewer_file_get_username(file);
+ g_object_set(G_OBJECT(session), "username", val, NULL);
+ g_free(val);
+ }
+
if (virt_viewer_file_is_set(file, "password")) {
gchar *val = virt_viewer_file_get_password(file);
g_object_set(G_OBJECT(session), "password", val, NULL);
--
1.9.3
More information about the virt-tools-list
mailing list