Summary: | Maliit virtual keyboard does not work on neon unstable due to QT_IM_MODULE being set to ibus by some unnecessary package being pre-installed | ||
---|---|---|---|
Product: | [KDE Neon] neon | Reporter: | Patrick Silva <bugseforuns> |
Component: | Packages Unstable Edition | Assignee: | Neon Bugs <neon-bugs> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | aleixpol, authenticastrology, jr, nate, neon-bugs, sitter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/neon/neon/settings/commit/7222a67b1b9590d2cdde89786ccdb27de83a1322 | Version Fixed In: | |
Sentry Crash Report: |
Description
Patrick Silva
2021-07-04 11:34:19 UTC
1. Is it selected as the input method in System Settings? 2. Is it enabled in its System Tray applet? (In reply to Nate Graham from comment #1) > 1. Is it selected as the input method in System Settings? > 2. Is it enabled in its System Tray applet? 1. yes 2. yes What is the QT_IM_MODULE environment variable set to? You can check with `echo $QT_IM_MODULE`. (In reply to Nate Graham from comment #3) > What is the QT_IM_MODULE environment variable set to? You can check with > `echo $QT_IM_MODULE`. ibus That's almost certainly the problem. Can you unset it (`unset QT_IM_MODULE`) and then in the same terminal window, restart plasmashell? If that doesn't work, probably KWin needs to be restarted with it unset too. Either way, this would seem to be a Neon bug for installing packages by default that set this environment variable. Most likely some runtime userspace IBus thing for the Emoji picker which is not needed (only libraries are needed, not the user-facing IBus software). Yes, confirmed. (In reply to Nate Graham from comment #5) > Can you unset it (`unset QT_IM_MODULE`) > and then in the same terminal window, restart plasmashell? virtual keyboard works after your instructions. Wouldn't one need that set to... you know... do ibus stuff? Like for CJK input and stuff. Also, I don't see QT_IM_MODULE set on a neon unstable out of the box. /etc/profile.d/org.kde.neon.ibus.sh sets it. The plan here is to have, on Wayland, ibus communicate with the compositor through the text input protocols, so it should be kwin starting ibus, not having every app set in ibus mode. org.kde.neon.ibus.sh is for korean only though. Anyway, so, org.kde.neon.ibus.sh should only set the env var when not in a wayland session? Also, does this ibus-compositor dance already work? It might be korean, it somehow ended up in my system. It does work, I'm sure it could use more love. For now, yes, changing it to only enable only on X11 would make sense. I'm not sure if there's a great reliable way to check though as profile.d is run before the session starts. WAYLAND_DISPLAY won't be set, I guess DISPLAY (for X11) will. A possibly relevant merge request was started @ https://invent.kde.org/neon/neon/settings/-/merge_requests/8 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. M +12 -2 ko/etc/profile.d/org.kde.neon.ibus.sh https://invent.kde.org/neon/neon/settings/commit/7222a67b1b9590d2cdde89786ccdb27de83a1322 It's still not working. Mallit is enabled in Virtual Keyboard KCM but the option to activate it is missing from system tray. That's a separate issue that was caused by the old SNI being removed and replaced with an applet. The applet is not currently showing up in the System Tray as it should. This is a known issue and something we'll get fixed before Plasma 5.23 ships. it's still not working. The icon in system tray indicates that maliit is activated but it does not show up when a text field is focused. Output of '$echo $QT_IM_MODULE' is still 'ibus'. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.23.80 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.3 Graphics Platform: Wayland can you check your /etc/profile.d/org.kde.neon.ibus.sh file? maybe these don't update because it's inside /etc? contents of mentioned file: export QT_IM_MODULE=ibus export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus I have deleted this file, reinstalled maliit-keyboard and maliit-framework packages and restarted Plasma session. Maliit is finally working. Yeah IIRC it is an Ubuntu-specific bug that files in /etc don't get automatically deleted when removed by the packaging. Can someone test that it works? I asked sitter and he says it does get updated. (In reply to Nate Graham from comment #5) > That's almost certainly the problem. Can you unset it (`unset QT_IM_MODULE`) > and then in the same terminal window, restart plasmashell? If that doesn't > work, probably KWin needs to be restarted with it unset too. > > Either way, this would seem to be a Neon bug for installing packages by > default that set this environment variable. Most likely some runtime > userspace IBus thing for the Emoji picker which is not needed (only > libraries are needed, not the user-facing IBus software). How do you, as a noob, restart plasmashell and kwin from the command line with the 6 Beta 2 unstable edition? Easiest way is to just restart the system. Yes, it just makes me disable ibus again |