summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Wu <zhiwen.wu@linux.intel.com>2014-02-17 12:53:19 +0800
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>2014-02-17 11:00:19 -0300
commit870e6ac17b3176b6df89b5c968d0941a74e41c53 (patch)
tree84c964695afdc467de33107f2205e30f28da6d3e
parent28991217f44c84dcbc280858a5d110858d2d9bf7 (diff)
downloadweekeyboard-870e6ac17b3176b6df89b5c968d0941a74e41c53.tar.gz
weekeyboard-870e6ac17b3176b6df89b5c968d0941a74e41c53.tar.bz2
weekeyboard-870e6ac17b3176b6df89b5c968d0941a74e41c53.zip
wkb-ibus: Fix repeatly create ibus-daemon.
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>
-rw-r--r--src/wkb-ibus.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wkb-ibus.c b/src/wkb-ibus.c
index b1651e3..5c1c3eb 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)