Bug 443670

Summary: No way to keep SDDM's keyboard layout in sync with a user's keyboard layout
Product: [Applications] systemsettings Reporter: benschroeder15
Component: kcm_sddmAssignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: minor CC: kde, nate, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: 5.22.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description benschroeder15 2021-10-13 14:29:58 UTC
SUMMARY
When booting the system and logging in the keyboard layout always defaults to US, even if the system is set to a different layout.
After locking your screen and logging in again the layout is set to the systems option.

Example password in US-layout: !@#$%^&*()_+
Example password in de-layout: !"§$%&/()=?`


STEPS TO REPRODUCE
1. Set keyboard layout to something other then US/American and choose Switching Policy "Global". Choose a password that contains characters that are in a different spot on non-US layouts.
2. Reboot
3. Attempt to log in.
4. Lock your screen.
5. Lock in again.

OBSERVED RESULT
Password on boot is !@#$%^&*()_+

EXPECTED RESULT
Password should be !"§$%&/()=?`


SOFTWARE/OS VERSIONS
Operating System: Fedora 34
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.14.10-200.fc34.x86_64 (64-bit)
Graphics Platform: X11


ADDITIONAL INFORMATION
The systems language is set to English (US), all other Formats are set to Deutsch (de_DE).
Comment 1 Nate Graham 2021-10-13 18:26:09 UTC
So what's going on here is that SDDM has a different set of settings from your user account because the system may have multiple user accounts, and in this case it wouldn't be able to know whose settings to apply. For this reason, applying your user settings to SDDM is a manual process.

It would be nice if it could be automatic for the simple case of a single-user machine. Alas that is quite technically challenging to implement without making the user experience sucky in other ways; we would have to ask you for the root password every time you changes a user setting that was to be synced with SDDM, for example.

Also this particular setting is tricky because it isn't really a setting; it's "state"--the kind of thing that is changed within a session. So if you synced the layout manually to SDDM once using the KCM, the next time you changes the keyboard layout, SDDM wouldn't match anymore.

Tricky problem to solve.
Comment 2 David Edmundson 2022-04-25 22:55:42 UTC

*** This bug has been marked as a duplicate of bug 425395 ***