Plasma 6, Wayland, and iBus


With X11 session this setup works fine (~/.xprofile):

if [ $XDG_SESSION_TYPE == 'x11' ]; then
    export GTK_IM_MODULE=ibus
    export QT_IM_MODULE=ibus
    export XMODIFIERS=@im=ibus
    exec /usr/bin/ibus-daemon -rxRd &

With Wayland session it still works. Why, BTW? I’ve never been starting ibus-daemon anywhere else. It works with a minor hitch, though: the keyboard layout change requires extra key press. Also key repeat seems to be broken.

Is there the recommended way to use Plasma 6, Wayland, and iBus?

No idea but maybe some of the wiki information might be helpful to you - IBus - ArchWiki

KDE comes with a plasmoid called Input Method Panel that can act as an IBus frontend and can possibly provide a better integrated experience.

I just have mine set to switch layouts by pressing SHIFT + CAPSLOCK. You might find it easier just to set this, or something similar?

Still can’t make it work. Now I have in the tray Input Method icon which won’t react on Left Click; on Right Click it guides me to Virtual Keyboard - System Settings. There I have IBus Wayland already selected, but otherwise it’s as good as dead.

I can start IBus daemon manually;

$  ibus-daemon -rxRd &

It still won’t work as expected.

Google Search brings me back to this very theme, mostly :frowning: