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

Marc-André Lureau marcandre.lureau at redhat.com
Tue Jan 13 08:38:27 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 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



More information about the Spice-devel mailing list