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:
parent
b9d166f804
commit
51c492fcad
|
@ -458,7 +458,7 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
|
||||||
desktop->path);
|
desktop->path);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
exe = ecore_exe_run(exec, inst);
|
exe = e_util_exe_safe_run(exec, inst);
|
||||||
if (chdir(buf))
|
if (chdir(buf))
|
||||||
{
|
{
|
||||||
e_util_dialog_show
|
e_util_dialog_show
|
||||||
|
@ -496,11 +496,11 @@ _e_exec_cb_exec(void *data, Efreet_Desktop *desktop, char *exec, int remaining)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
exe = ecore_exe_run(exec, inst);
|
exe = e_util_exe_safe_run(exec, inst);
|
||||||
efreet_desktop_free(tdesktop);
|
efreet_desktop_free(tdesktop);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
exe = ecore_exe_run(exec, inst);
|
exe = e_util_exe_safe_run(exec, inst);
|
||||||
}
|
}
|
||||||
else if (desktop && desktop->url)
|
else if (desktop && desktop->url)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue