Bug 482055 - On Wayland, setting Input Method to Ibus doesn't autostart ibus
Summary: On Wayland, setting Input Method to Ibus doesn't autostart ibus
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Input Method widget (show other bugs)
Version: 6.0.0
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-29 16:27 UTC by LTS20050703
Modified: 2024-03-05 08:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LTS20050703 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 LTS20050703 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