aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/options_elm.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-05-28 23:30:05 +0200
committerBoris Faure <billiob@gmail.com>2017-05-28 23:30:05 +0200
commit72eaf53e26c8a7774a80cbb34a7740db17cd5a7b (patch)
tree9d728576f5c17947a2022c3e5549d1c220abae0e /src/bin/options_elm.c
parenttermptyesc: use macro to restrict field value (diff)
downloadterminology-72eaf53e26c8a7774a80cbb34a7740db17cd5a7b.tar.gz
options: use ecore_exe_pipe_run() instead of fork+exec
Patch provided by Vincent Torri
Diffstat (limited to 'src/bin/options_elm.c')
-rw-r--r--src/bin/options_elm.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/bin/options_elm.c b/src/bin/options_elm.c
index 01dd554..f48b6f3 100644
--- a/src/bin/options_elm.c
+++ b/src/bin/options_elm.c
@@ -9,18 +9,10 @@ launch_elm_config(void *_data EINA_UNUSED,
Evas_Object *_obj EINA_UNUSED,
void *_event_info EINA_UNUSED)
{
- int pid;
-
- pid = fork();
- if (pid < 0)
- {
- ERR("unable to fork: %s", strerror(errno));
- return;
- }
- if (pid == 0)
- {
- execl("/bin/sh", "sh", "-c", "elementary_config", NULL);
- }
+ Ecore_Exe *exe;
+
+ exe = ecore_exe_pipe_run("elementary_config", ECORE_EXE_NONE, NULL);
+ ecore_exe_free(exe);
}
void