let's make server work out of the box if u set:
[profile/ivi/evas.git] / src / bin / evas_cserve2_main_loop_linux.c
index ad28518..e8cc33d 100644 (file)
@@ -207,6 +207,11 @@ _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);
+   return;
+#if 0   
    env = getenv("XDG_RUNTIME_DIR");
    if (!env || !env[0])
      {
@@ -222,6 +227,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 int