use safer ecore_exe flags that close stdin/out/err more often

commit b9d166f804 introduced
safer exe functions that both prevent a child from having E's
stdin/stdout/stderr and ensure the child's fd 0 (and 1 and 2) are
"valid" file descriptors (to work around some buggy software that
assumes 0 is an invalid file descriptor)

This commit uses the safer functions when launching child programs from
the desktop menu as well.

ref T5606
@fix
This commit is contained in:
Derek Foreman 2017-09-25 10:10:49 -05:00
parent b9d166f804
commit 51c492fcad
1 changed files with 3 additions and 3 deletions

View File

@ -458,7 +458,7 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
desktop->path);
return NULL;
}
exe = ecore_exe_run(exec, inst);
exe = e_util_exe_safe_run(exec, inst);
if (chdir(buf))
{
e_util_dialog_show
@ -496,11 +496,11 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
}
}
else
exe = ecore_exe_run(exec, inst);
exe = e_util_exe_safe_run(exec, inst);
efreet_desktop_free(tdesktop);
}
else
exe = ecore_exe_run(exec, inst);
exe = e_util_exe_safe_run(exec, inst);
}
else if (desktop && desktop->url)
{