weird icons are because startup id was broken!
authorCarsten Haitzler <raster@rasterman.com>
Wed, 5 Oct 2005 08:47:29 +0000 (08:47 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 5 Oct 2005 08:47:29 +0000 (08:47 +0000)
SVN revision: 17188

src/bin/e_apps.c
src/bin/e_zone.c

index 7976880..ba3bccb 100644 (file)
@@ -635,6 +635,9 @@ e_app_launch_id_pid_find(int launch_id, pid_t pid)
             if (((launch_id > 0) && (ai->launch_id > 0) && (ai->launch_id == launch_id)) ||
                 ((pid > 1) && (ai->exe) && (ecore_exe_pid_get(ai->exe) == pid)))
               {
+                 printf("IC: ai->launch_id [%i] == launch_id [%i] | ai->exe->pid [%i] == pid [%i]\n",
+                        ai->launch_id, launch_id, ecore_exe_pid_get(ai->exe), pid);
+                 printf("  RET %s\n", a->name);
                  _e_apps_list = evas_list_remove_list(_e_apps_list, l);
                  _e_apps_list = evas_list_prepend(_e_apps_list, a);
                  return a;
index 7d3e5af..ccb3b7b 100644 (file)
@@ -538,14 +538,12 @@ e_zone_app_exec(E_Zone *zone, E_App *a)
    char buf[4096], buf2[32];
    
    if (!a) return 0;
-   if (!startup_id)
+   if (!startup_id == 0)
      {
        p1 = getenv("E_STARTUP_ID");
-       if (p1)
-         startup_id = atoi(p1);
+       if (p1) startup_id = atoi(p1);
      }
-   else
-     startup_id = 1;
+   startup_id++;
    /* save previous env vars we need to save */
    penv_display = getenv("DISPLAY");
    if (penv_display) penv_display = strdup(penv_display);