startupid incriment early - id of 0 != valid
authorCarsten Haitzler <raster@rasterman.com>
Wed, 5 Oct 2005 13:31:56 +0000 (13:31 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 5 Oct 2005 13:31:56 +0000 (13:31 +0000)
SVN revision: 17195

src/bin/e_zone.c

index 60f8621..5c2896e 100644 (file)
@@ -543,6 +543,7 @@ e_zone_app_exec(E_Zone *zone, E_App *a)
        p1 = getenv("E_STARTUP_ID");
        if (p1) startup_id = atoi(p1);
      }
+   startup_id++;
    /* save previous env vars we need to save */
    penv_display = getenv("DISPLAY");
    if (penv_display) penv_display = strdup(penv_display);
@@ -592,7 +593,6 @@ e_zone_app_exec(E_Zone *zone, E_App *a)
    e_util_env_set("DESKTOP_STARTUP_ID", buf);
    /* execute */
    ret = e_app_exec(a, startup_id);
-   if (++startup_id < 1) startup_id = 1;
  
    /* reset env vars */
    if (penv_display)