diff options
author | Alex Wu <zhiwen.wu@linux.intel.com> | 2014-02-17 11:46:04 +0800 |
---|---|---|
committer | Philippe Coval <philippe.coval@open.eurogiciel.org> | 2014-02-17 11:03:17 +0100 |
commit | 739c00d990ad76703afd4f6ea1fae955689a7aad (patch) | |
tree | 41a7888887cfb6dc3e48644e2875057d05715db6 | |
parent | b95478f0f3e025e005ad5cfb2cb694c4fb794f7f (diff) | |
download | weekeyboard-739c00d990ad76703afd4f6ea1fae955689a7aad.tar.gz weekeyboard-739c00d990ad76703afd4f6ea1fae955689a7aad.tar.bz2 weekeyboard-739c00d990ad76703afd4f6ea1fae955689a7aad.zip |
wkb-ibus: Fix repeatly create ibus-daemon.submit/tizen_ivi_release/20140312.071403submit/tizen/20140312.070934submit/tizen/20140228.084212accepted/tizen/mobile/20140303.023139accepted/tizen/ivi/release/20140312.124550accepted/tizen/ivi/panda/20140312.113926accepted/tizen/ivi/20140228.193231accepted/tizen/generic/20140312.123218accepted/tizen/generic/20140228.100708accepted/tizen_generic
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 fixes it.
Origin: upstream/e69bf40da41d2ee297854ccfef019432507f9752
Change-Id: I30a16c8e3048775b3709fbf8da671ca4fb1c509a
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
-rw-r--r-- | src/wkb-ibus.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wkb-ibus.c b/src/wkb-ibus.c index 4fa723e..a3a933d 100644 --- a/src/wkb-ibus.c +++ b/src/wkb-ibus.c @@ -317,8 +317,11 @@ _wkb_ibus_exe_data_cb(void *data, int type, void *event_data) 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) |