From 9e35493874cf1e6cb651f419928df2c09fe1e3e5 Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Tue, 18 Feb 2025 16:19:27 +0100 Subject: [PATCH] Fix to load EN compose file Now EN compose file is loaded in the class init of IBus.EngineSimple and IBus.init() needs to be called before the init. This fix is needed for ibus >= 1.5.32~beta2. See also: https://github.com/ibus/ibus-anthy/commit/14b2759772fb1adc67453108e958bf0bf181ce1d --- engine/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/main.py b/engine/main.py index d5ac1c9..86c36e1 100644 --- a/engine/main.py +++ b/engine/main.py @@ -123,6 +123,10 @@ def parse_args() -> Any: # the above error message appears. # # See: https://bugzilla.redhat.com/show_bug.cgi?id=1955283 + # + # Need to call IBus.init() before IBus.EngineSimple() is loaded + # factory -> engine -> IBus.EngineSimple + IBus.init() import factory class IMApp: @@ -371,7 +375,6 @@ def main() -> None: LOGGER.addHandler(log_handler) LOGGER.info('********** STARTING **********') - IBus.init() if _ARGS.daemon: if os.fork(): sys.exit()