fix(kde): Remove QT_IM_MODULE and GTK_IM_MODULE for IBus in wayland (#1069)

To enable IBus in wayland session, it is necessary to remove environment variable  `QT_IM_MODULE` and `GTK_IM_MODULE`. The proper method to make ibus work is setting virtual keyboard to "IBus Wayland".
This commit is contained in:
Chenx Dust 2024-05-04 07:12:03 +08:00 committed by GitHub
parent 10aea96288
commit 26c8b6d9aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,7 @@ Patch0: fedora.patch
Patch1: kdeglobals.patch
Patch2: bazzite_logo.patch
Patch3: ublue.patch
Patch4: wayland-remove-env.patch
Requires: kde-filesystem

View File

@ -0,0 +1,8 @@
diff --git a/etc/xdg/plasma-workspace/env/ibus.sh b/etc/xdg/plasma-workspace/env/ibus.sh
index 36558e7..97f74e7 100644
--- a/etc/xdg/plasma-workspace/env/ibus.sh
+++ b/etc/xdg/plasma-workspace/env/ibus.sh
@@ -1,3 +1 @@
-export QT_IM_MODULE=ibus
-export GTK_IM_MODULE=ibus
export XMODIFIERS= @ im = ibus