Bug 474865

Summary: Dialog does not read autologin settings from config file before first use
Product: [Applications] systemsettings Reporter: Eidur Eidsson <eidurkr>
Component: kcm_sddmAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, kde, nate
Priority: NOR    
Version First Reported In: 5.27.8   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=460053
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eidur Eidsson 2023-09-25 17:16:29 UTC
Possibly related:
https://bugs.kde.org/show_bug.cgi?id=460053
https://bugs.kde.org/show_bug.cgi?id=471356

SUMMARY
The "Automatically log in as user" option under "Behaviour" remains greyed out if /etc/sddm.conf.d/kde_settings.conf is edited directly before it is first used graphically. Also, changing it graphically later messes with the theme settings.

STEPS TO REPRODUCE
1. Change kde_settings.conf without opening systemsettings, such as:
     [Autologin]
     Session=plasmawayland
     User=mainuser
     [Theme]
     Current=breeze
2. Open "Behaviour" in kcm_sddm and observe the displayed autologin settings.
3. Change the settings graphically.
4. Observe the changes in kde_settings.conf.

OBSERVED RESULT
After 1 & 2, the autologin settings remain greyed out and incorrect.
After 3 & 4, the autologin settings start working normally, regardless of where they are changed (file or dialog).
After 3 & 4, the theme setting is unset.