<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 5:34 PM, Fabiano Fidêncio <span dir="ltr"><<a href="mailto:fidencio@redhat.com" target="_blank">fidencio@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Currently virt-viewer doesn't allow the user to set his/her username<br>
in the SPICE authentication dialog.<br>
Now, let's auto fill the dialog with the current user name as username<br>
and leave to the user the possibility to change it, if necessary.<br>
---<br>
 src/virt-viewer-session-spice.c | 3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c<br>
index dd96fdf..6b61ce8 100644<br>
--- a/src/virt-viewer-session-spice.c<br>
+++ b/src/virt-viewer-session-spice.c<br>
@@ -509,10 +509,11 @@ virt_viewer_session_spice_main_channel_event(SpiceChannel *channel G_GNUC_UNUSED<br>
                                   _("invalid password"));<br>
         self->priv->pass_try++;<br>
<br>
+        user = g_strdup (g_get_user_name());<br>
         ret = virt_viewer_auth_collect_credentials(self->priv->main_window,<br>
                                                    "SPICE",<br>
                                                    NULL,<br>
-                                                   NULL, &password);<br>
+                                                   &user, &password);<br>
         if (!ret) {<br>
             g_signal_emit_by_name(session, "session-cancelled");<br>
         } else {<br>
<span class=""><font color="#888888">--<br>
1.9.3<br>
<br>
_______________________________________________<br>
virt-tools-list mailing list<br>
<a href="mailto:virt-tools-list@redhat.com">virt-tools-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/virt-tools-list" target="_blank">https://www.redhat.com/mailman/listinfo/virt-tools-list</a><br>
</font></span></blockquote></div><br><div class="gmail_extra">self NACK!</div><div class="gmail_extra">Typos in the commit message/short log.</div><div><br></div>-- <br><div>Fabiano Fidêncio</div>
</div></div>