From: Bluezery <ohpowel@gmail.com>
[framework/uifw/elementary.git] / src / bin / quicklaunch.c
index 50f26ec..c9e6de9 100644 (file)
@@ -95,10 +95,10 @@ handle_run(int fd, unsigned long bytes)
    int argc;
 
    buf = alloca(bytes);
-   if (read(fd, buf, bytes) < 0)
+   if (read(fd, buf, bytes) <= 0)
      {
-       close(fd);
-       return;
+        close(fd);
+        return;
      }
    close(fd);
    argc = ((unsigned long *)(buf))[0];
@@ -266,10 +266,11 @@ main(int argc, char **argv)
        struct sockaddr_un client;
        socklen_t len;
 
-       elm_quicklaunch_sub_init(argc, argv);
-       elm_quicklaunch_seed();
        len = sizeof(struct sockaddr_un);
        fd = accept(sock, (struct sockaddr *)&client, &len);
+       elm_quicklaunch_sub_init(argc, argv);
+// don't seed since we are doing this AFTER launch request        
+//     elm_quicklaunch_seed();
        if (fd >= 0)
          {
             unsigned long bytes;