[neon/neon/settings/Neon/release] ko/etc/profile.d: only set ibus as input method on x11

Harald Sitter null at kde.org
Tue Aug 17 15:06:35 BST 2021


Git commit 7222a67b1b9590d2cdde89786ccdb27de83a1322 by Harald Sitter.
Committed on 17/08/2021 at 14:06.
Pushed by sitter into branch 'Neon/release'.

only set ibus as input method on x11

on wayland IMs are handled through a wayland protocol and setting the
explicit IM gets in the way of things.

BUG: 439469

M  +12   -2    ko/etc/profile.d/org.kde.neon.ibus.sh

https://invent.kde.org/neon/neon/settings/commit/7222a67b1b9590d2cdde89786ccdb27de83a1322

diff --git a/ko/etc/profile.d/org.kde.neon.ibus.sh b/ko/etc/profile.d/org.kde.neon.ibus.sh
index d85c169..5dde4e3 100644
--- a/ko/etc/profile.d/org.kde.neon.ibus.sh
+++ b/ko/etc/profile.d/org.kde.neon.ibus.sh
@@ -1,3 +1,13 @@
-export QT_IM_MODULE=ibus
-export GTK_IM_MODULE=ibus
+# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+# SPDX-FileCopyrightText: 2020 Jonathan Riddell <jr at jriddell.org>
+# SPDX-FileCopyrightText: 2021 Harald Sitter <sitter at kde.org>
+
+# Only setup ibus input method outside wayland. On wayland ibus should talk to
+# the compositor through text input protocols to kick into action and explicitly
+# setting an IM gets in the way of the virtual keyboard integration.
+# https://bugs.kde.org/show_bug.cgi?id=439469
+if [ "$XDG_SESSION_TYPE" = "x11" ]; then
+  export QT_IM_MODULE=ibus
+  export GTK_IM_MODULE=ibus
+fi
 export XMODIFIERS=@im=ibus


More information about the Neon-commits mailing list