From 56629c6f9d5e289fdd16388965516fe5ebf5c8dc Mon Sep 17 00:00:00 2001 From: fujiwarat Date: Fri, 17 Feb 2023 15:52:58 +0900 Subject: engine: Fix to find compose resource in IBus core IBus.init() has been required since 1.5.28 after the EN compose table was moved to GResource. --- engine/python2/main.py | 3 ++- engine/python3/main.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/python2/main.py b/engine/python2/main.py index 096cd41..c366293 100644 --- a/engine/python2/main.py +++ b/engine/python2/main.py @@ -4,7 +4,7 @@ # ibus-anthy - The Anthy engine for IBus # # Copyright (c) 2007-2008 Peng Huang -# Copyright (c) 2010-2016 Takao Fujiwara +# Copyright (c) 2010-2023 Takao Fujiwara # Copyright (c) 2007-2016 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify @@ -179,6 +179,7 @@ def main(): print >> sys.stderr, 'Unknown argument: %s' % o print_help(sys.stderr, 1) + IBus.init() if daemonize: if os.fork(): sys.exit() diff --git a/engine/python3/main.py b/engine/python3/main.py index 1a2e6fd..8665ae0 100644 --- a/engine/python3/main.py +++ b/engine/python3/main.py @@ -4,7 +4,7 @@ # ibus-anthy - The Anthy engine for IBus # # Copyright (c) 2007-2008 Peng Huang -# Copyright (c) 2010-2016 Takao Fujiwara +# Copyright (c) 2010-2023 Takao Fujiwara # Copyright (c) 2007-2016 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify @@ -177,6 +177,7 @@ def main(): print('Unknown argument: %s' % o, file=sys.stderr) print_help(sys.stderr, 1) + IBus.init() if daemonize: if os.fork(): sys.exit() -- cgit v1.2.1