Bug 482055

Summary: On Wayland, setting Input Method to Ibus doesn't autostart ibus
Product: [Plasma] plasmashell Reporter: Link <link20050703>
Component: Input Method widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aleixpol, nate, nicolas.fella
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=453369
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Link 2024-02-29 16:27:23 UTC
SUMMARY
After setting Input Method to Ibus and restart, on X, Ibus is autostarted, but on Wayland it doesn't

STEPS TO REPRODUCE
1. Add the following lines to .bashrc
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
2. Launch "Input Method"
3. Select "activate Intelligent Input Ibus"
4. Restart

OBSERVED RESULT
Ibus autostart on X but doesn't autostart on Wayland

EXPECTED RESULT
Ibus autostart on both X and Wayland

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
OS: KDE Neon 6.0
Graphics Platform: Wayland
Comment 1 Vlad Zahorodnii 2024-03-04 21:30:58 UTC
I believe this is not the way to configure ibus on wayland. You need to open "Virtual Keyboard" in System Settings and select "IBus Wayland". Then kwin will autostart ibus.

As for the environment variables, ibus will complain if QT_IM_MODULE and QT_IM_MODULE environment variables are set. You need to unset them otherwise ibus won't function as expected. ibus will also show a notification warning about that.
Comment 2 Link 2024-03-05 05:49:28 UTC
I do not see "Ibus Wayland" under Virtual Keyboard in System Settings. The only two I see is "None" and "Maliit". Is there anything I need to install in order for the option to appear?
Comment 3 Vlad Zahorodnii 2024-03-05 07:35:17 UTC
Maybe you run a slightly older version of ibus? https://github.com/ibus/ibus/commit/3f3f0b6b38c227d6201f5d6fb6381923cd4c2ed1

You need at least ibus 1.5.29