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.
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?
Right over here, thanks: https://github.com/fcitx/fcitx/issues