[Spice-devel] [PATCHv2 09/10] session: teach spice_uri_create() about UNIX path

Marc-André Lureau marcandre.lureau at redhat.com
Tue Jan 27 05:53:22 PST 2015


---
 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 9738e69..f266150 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 != NULL) {
+    if (s->unix_path != NULL) {
+        return g_strdup_printf(URI_SCHEME_SPICE_UNIX "%s", s->unix_path);
+    } else if (s->host != NULL) {
         g_return_val_if_fail(s->port != NULL || s->tls_port != NULL, NULL);
 
         GString *str = g_string_new(URI_SCHEME_SPICE);
-- 
2.1.0



More information about the Spice-devel mailing list