startupid incriment early - id of 0 != valid

SVN revision: 17195
This commit is contained in:
Carsten Haitzler 2005-10-05 13:31:56 +00:00
parent b0ce160fa0
commit bafbfdd400
1 changed files with 1 additions and 1 deletions

View 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)