Skip to content

Commit

Permalink
Fix to load EN compose file
Browse files Browse the repository at this point in the history
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: ibus/ibus-anthy@14b2759
  • Loading branch information
mike-fabian committed Feb 18, 2025
1 parent 40764b0 commit 9e35493
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -371,7 +375,6 @@ def main() -> None:
LOGGER.addHandler(log_handler)
LOGGER.info('********** STARTING **********')

IBus.init()
if _ARGS.daemon:
if os.fork():
sys.exit()
Expand Down

0 comments on commit 9e35493

Please sign in to comment.