Bug 476831

Summary: Per application Keyboard Layout not remembered under Wayland
Product: [Plasma] plasmashell Reporter: Silver Salonen <silver.salonen>
Component: Keyboard LayoutAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: butirsky, nate, omosnacek, postix
Priority: NOR Keywords: wayland
Version: 5.27.9Flags: butirsky: Wayland+
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=436318
Latest Commit: Version Fixed In:

Description Silver Salonen 2023-11-11 09:49:03 UTC
SUMMARY
I use "Application" Switching Policy for keyboard layouts. When used under X11, layout mappings for applications were always remembered, even across sessions. Under Wayland they are not remembered, even within the same session.


STEPS TO REPRODUCE
1. Use Wayland session
2. Configure multiple (I use 2) keyboard layouts

OBSERVED RESULT
I always switch to US layout when using Konsole. When closing Konsole and starting it again, it uses my first layout instead.

EXPECTED RESULT
After switching layout for an application and closing the application, re-opening the application should also switch to the layout used last with this application.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Comment 1 Andrey 2024-01-12 16:12:32 UTC
This bug might be related with Session management on Wayland which is not quite implemented yet.

*** This bug has been marked as a duplicate of bug 436318 ***
Comment 2 Andrey 2024-01-12 16:15:00 UTC
If it's doubtful this should be handled with the session management, we can reopen the bug.
Comment 3 Silver Salonen 2024-01-13 07:14:30 UTC
I'm not sure what component handles this, but it does not seem to me it's related to session. The use-case I described is done during the same session, not over several sessions.
Although previously, I think per application keyboard layouts indeed were remembered across sessions too.