let's make server work out of the box if u set:
[profile/ivi/evas.git] / src / lib / cserve2 / evas_cs2_client.c
index 00485d7..1b93ccd 100644 (file)
@@ -58,6 +58,10 @@ _socket_path_set(char *path)
         return;
      }
 
+   snprintf(buf, sizeof(buf), "/tmp/.evas-cserve2-%x.socket", (int)getuid());
+   /* FIXME: check we can actually create this socket */
+   strcpy(path, buf);
+#if 0   
    env = getenv("XDG_RUNTIME_DIR");
    if (!env || !env[0])
      {
@@ -73,6 +77,7 @@ _socket_path_set(char *path)
    snprintf(buf, sizeof(buf), "%s/evas-cserve2-%x.socket", env, getuid());
    /* FIXME: check we can actually create this socket */
    strcpy(path, buf);
+#endif   
 }
 
 static Eina_Bool