Bug 471947 - Wrong keyboard layout in sandboxed applications after login
Summary: Wrong keyboard layout in sandboxed applications after login
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.4
Platform: Kubuntu Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-04 14:24 UTC by Noah Kirschmann
Modified: 2023-09-11 21:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noah Kirschmann 2023-07-04 14:24:38 UTC
SUMMARY

Most sandboxed applications have the wrong keyboard layout after a reboot when using plasma wayland.
I use a German keyboard layout and that is the only one I have in the keyboard settings.
However, after each restart, I have to go into the keyboard settings and change the layout switching policy from global to desktop and back to global to have the correct keyboard layout.
This bug only seems to affect sandboxed applications (flatpak and snap), 'normal' apps seem to work fine.
For whatever reason the prism launcher seems to work fine but minecraft has the wrong keys.

The keyboard layout that seems to be active should be English US.
This problem is only on wayland and does not happen on X11.

STEPS TO REPRODUCE
1. Install kubuntu 23.04 with kwin wayland
2. only have a german keyboard and keyboard layout
3. launch firefox or any app installed using flatpak

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2.0-24
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Oibaf graphics drivers are installed.
Comment 1 Noah Kirschmann 2023-07-25 11:19:51 UTC
I got it working again. There seems to be a problem with fcitx. If no default keyboard layout is set in fcitx, on plasma wayland en-us is going to be used as keyboard layout even if the selected layout is a different one. This only happens in sandboxed applications on wayland X11 works just fine.
Since the solution is setting a default layout in fcitx, can this still be counted as KDE bug, or do I have to find the fcitx bug tracker?
Comment 2 Nate Graham 2023-09-11 21:28:27 UTC
Right over here, thanks: https://github.com/fcitx/fcitx/issues