[virt-tools-list] [virt-viewer: PATCH 2/3] Use 'username' property from .vv file
Christophe Fergeau
cfergeau at redhat.com
Thu Oct 2 08:12:03 UTC 2014
On Wed, Oct 01, 2014 at 04:41:29PM +0200, Fabiano Fidêncio wrote:
> ---
> 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);
> + }
> +
You need to update the documentation at the top of the file, and
remote-viewer.pod (the man page).
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20141002/06906bd7/attachment.sig>
More information about the virt-tools-list
mailing list