## Description: add some description
## Origin/Author: add some origin or author
## Bug: bug URL
Index: ibus-unikey-0.5/src/engine.cpp
===================================================================
--- ibus-unikey-0.5.orig/src/engine.cpp	2010-09-18 21:17:51.000000000 +0700
+++ ibus-unikey-0.5/src/engine.cpp	2010-09-18 21:18:04.000000000 +0700
@@ -3,7 +3,7 @@
 #endif
 #include <libintl.h>
 
-#include <stdlib.h>
+#include <wait.h>
 #include <string.h>
 #include <X11/Xlib.h>
 #include <ibus.h>
@@ -1181,10 +1181,12 @@
 
 static void* thread_run_setup(void* data)
 {
-    gchar s[1024];
-    strcpy(s, LIBEXECDIR "/ibus-setup-unikey --engine");
-    s[0] = system(s); // for not warning only
-    ibus_quit();
+    int stat;
+
+    popen(LIBEXECDIR "/ibus-setup-unikey --engine", "r");
+    wait(&stat);
+    if (stat == 0)
+        ibus_quit();
     return NULL;
 }
 
