e17 exehist: do not add file params to exhist

SVN revision: 41268
This commit is contained in:
Hannes Janetzek 2009-07-07 17:38:42 +00:00
parent dba9cb315f
commit 315133303e
1 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,7 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
return NULL; return NULL;
} }
/* reset env vars */ /* reset env vars */
if (launch->launch_method) e_exehist_add(launch->launch_method, exec); if (launch->launch_method && !desktop) e_exehist_add(launch->launch_method, exec);
free(exec); free(exec);
/* 20 lines at start and end, 20x100 limit on bytes at each end. */ /* 20 lines at start and end, 20x100 limit on bytes at each end. */
//// FIXME: seem to be some issues with the pipe and filling up ram - need to //// FIXME: seem to be some issues with the pipe and filling up ram - need to
@ -256,6 +256,8 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
eina_hash_add(e_exec_instances, desktop->orig_path, l); eina_hash_add(e_exec_instances, desktop->orig_path, l);
} }
e_exec_start_pending = eina_list_append(e_exec_start_pending, desktop); e_exec_start_pending = eina_list_append(e_exec_start_pending, desktop);
e_exehist_add(launch->launch_method, desktop->exec);
} }
else if (exe) else if (exe)
{ {