startupid incriment early - id of 0 != valid
SVN revision: 17195
This commit is contained in:
parent
b0ce160fa0
commit
bafbfdd400
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue