From 67d7ddaf16943358ac43224e1ac11a13389548fb Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 5 Oct 2005 08:47:29 +0000 Subject: [PATCH] weird icons are because startup id was broken! SVN revision: 17188 --- src/bin/e_apps.c | 3 +++ src/bin/e_zone.c | 8 +++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index 7976880cb..ba3bccba5 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -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; diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c index 7d3e5af34..ccb3b7b26 100644 --- a/src/bin/e_zone.c +++ b/src/bin/e_zone.c @@ -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);