https://bugzilla.redhat.com/show_bug.cgi?id=1142458
--- Comment #10 from Mike FABIAN <mfabian(a)redhat.com> ---
You could try whether the above helps for in your case, on
my system it makes no difference as the first call to get_config()
always seems to succeed on my machine.
diff --git a/engine/table.py b/engine/table.py
index 7a8c150..896ecde 100644
--- a/engine/table.py
+++ b/engine/table.py
@@ -1096,8 +1096,15 @@ class tabengine (IBus.Engine):
self._config_section = "engine/Table/%s"
%self._engine_name.replace('
','_')
# config module
- self._config = self._bus.get_config ()
- self._config.connect ("value-changed", self.config_value_changed_cb)
+ for i in range(0,9):
+ self._config = self._bus.get_config ()
+ if self._config:
+ break
+ time.sleep(0.1)
+ if self._config:
+ self._config.connect ("value-changed",
self.config_value_changed_cb)
+ else:
+ print('Error: could not connect callback for config value
changes.')
# self._ime_py: Indicates whether this table supports pinyin mode
self._ime_py = self.db.ime_properties.get('pinyin_mode')
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=dTdrGceDVg&a=cc_unsubscribe