[Spice-devel] [PATCH spice-gtk 8/9] session: teach spice_uri_create() about UNIX path

Christophe Fergeau cfergeau at redhat.com
Mon Jan 26 09:43:21 PST 2015


ACK.

On Tue, Jan 13, 2015 at 05:38:27PM +0100, Marc-André Lureau wrote:
> ---
>  gtk/spice-session.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/gtk/spice-session.c b/gtk/spice-session.c
> index 7872af7..2dec8c7 100644
> --- a/gtk/spice-session.c
> +++ b/gtk/spice-session.c
> @@ -357,7 +357,9 @@ static gchar* spice_uri_create(SpiceSession *session)
>  {
>      SpiceSessionPrivate *s = session->priv;
>  
> -    if (s->host) {
> +    if (s->unix_path) {
> +        return g_strdup_printf(URI_SCHEME_SPICE_UNIX "%s", s->unix_path);
> +    } else if (s->host) {
>          GString *str = g_string_new(URI_SCHEME_SPICE);
>  
>          g_string_append(str, s->host);
> -- 
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150126/12c9c821/attachment.sig>


More information about the Spice-devel mailing list