From 1df9affaed12fd1ddb9fb43694acf5391f548062 Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Sat, 1 Jun 2024 23:04:02 +0900 Subject: [PATCH] Resolve #2284094 Fix preedit in Flatpak with new DBus unique name - Add directory %%{_prefix}/lib/systemd/user/gnome-session.target.wants - Add directory %%{_libdir}/gtk-4.0/%{gtk4_binary_version}/immodules --- ibus-HEAD.patch | 245 +++++++++++++++++++++++++++++++++++++++++++++++- ibus.spec | 9 +- 2 files changed, 252 insertions(+), 2 deletions(-) diff --git a/ibus-HEAD.patch b/ibus-HEAD.patch index 8356b67..72ebe09 100644 --- a/ibus-HEAD.patch +++ b/ibus-HEAD.patch @@ -806,7 +806,7 @@ index ac478855..e2f96a37 100644 From 759105df1d83ae25d9eea801a7c91e67dca43cb8 Mon Sep 17 00:00:00 2001 From: fujiwarat Date: Sat, 25 May 2024 19:23:23 +0900 -Subject: [PATCH] bus: Change IBus unique name to :1.0 from IBUS_SERVICE_IBUS +Subject: [PATCH 1/6] bus: Change IBus unique name to :1.0 from IBUS_SERVICE_IBUS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -1053,3 +1053,246 @@ index 1dd304cd..37b6347b 100644 -- 2.45.0 +From a4d58cb859cad4a0c12e2c2a34f440f77cd73bae Mon Sep 17 00:00:00 2001 +From: fujiwarat +Date: Sat, 1 Jun 2024 20:20:19 +0900 +Subject: [PATCH 2/6] portal: Let Flatpak application accept new IBus unique name + +ibus-portal can accept the connection from IBUS_SERVICE_IBUS only +but now the IBus unique name is changed to IBUS_NAME_OWNER_NAME +as the D-Bus name owner and probably I think the name check is +not needed and just delete it. + +BUG=https://github.com/ibus/ibus/issues/2639 +Fixes: https://github.com/ibus/ibus/commit/759105d +--- + portal/portal.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/portal/portal.c b/portal/portal.c +index c2e4fc7f..34da9679 100644 +--- a/portal/portal.c ++++ b/portal/portal.c +@@ -400,9 +400,6 @@ portal_context_g_signal (GDBusProxy *proxy, + GError *error = NULL; + GDBusConnection *connection; + +- if (g_strcmp0 (sender_name, IBUS_SERVICE_IBUS) != 0) +- return; +- + connection = g_dbus_interface_skeleton_get_connection ( + G_DBUS_INTERFACE_SKELETON (portal_context)); + if (!g_dbus_connection_emit_signal (connection, +-- +2.45.0 + +From 02632ccdd430fdc3d1a58025d31c5ec72d9a7989 Mon Sep 17 00:00:00 2001 +From: fujiwarat +Date: Sat, 1 Jun 2024 20:32:29 +0900 +Subject: [PATCH 3/6] portal: Support new sync ibus_input_context_process_key_event() + +IBus clients have been enhanced with the new synchronous +"ProcessKeyEvent" to fix the long-standing issues and ibus-portal +also needs to support it. + +Fixes: https://github.com/ibus/ibus/commit/38f09c6 +--- + portal/org.freedesktop.IBus.Portal.xml | 7 +++- + portal/portal.c | 54 ++++++++++++++++++++++++-- + 2 files changed, 56 insertions(+), 5 deletions(-) + +diff --git a/portal/org.freedesktop.IBus.Portal.xml b/portal/org.freedesktop.IBus.Portal.xml +index 376ad424..0b3f6864 100644 +--- a/portal/org.freedesktop.IBus.Portal.xml ++++ b/portal/org.freedesktop.IBus.Portal.xml +@@ -1,6 +1,6 @@ + +