It is possible that the ibus-daemon is up but weekeyboard can't
get anything from it. In this case, weekeyboard will always create
a new ibus-daemon. This patch fix it.
Change-Id: If7cb00345971769c3f95b54e74f723013835514d
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
if (strncmp(exe_data->data, "(null)", exe_data->size) == 0)
{
- INF("IBus daemon is not running, spawning");
- ecore_idler_add(_wkb_ibus_launch_idler, NULL);
+ if (!wkb_ibus->ibus_daemon)
+ {
+ INF("IBus daemon is not running, spawning");
+ ecore_idler_add(_wkb_ibus_launch_idler, NULL);
+ }
goto end;
}
else if (strstr(exe_data->data, "unknown command") != NULL)