Bug 495025

Summary: SDDM System Settings to Autologin into X11 Session applies invalid value in /etc/sddm.conf.d/kde_settings.conf on *first* Apply
Product: [Applications] systemsettings Reporter: Christian Hartmann <hartmann.christian>
Component: kcm_sddmAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: bvbfan, kde, kde
Priority: NOR    
Version: 6.2.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christian Hartmann 2024-10-19 05:02:52 UTC
SUMMARY

Session Settings in /etc/sddm.conf.d/kde_settings.conf for an Autologin X11 Session set through System Settings / Colorts & Themes / Login Screen (SDDM) / Behavior panel is invalid on *first* Apply

STEPS TO REPRODUCE
1. Open System Settings / Colors & Themes / Login Screen (SDDM) / Behavior
2. Ensure no user / no Session is selected
3. Select user (name) and Plasma (X11) Session, Apply

OBSERVED RESULT
/etc/sddm.conf.d/kde_settings.conf reads:
Session=Plasma (X11)
User=.....

No Autologin Session via SDDM

EXPECTED RESULT
/etc/sddm.conf.d/kde_settings.conf reads:
Session=plasmax11
User=.....

or:
Session=plasmax11.desktop

Autologin via SDDM to user Session


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 
Operating System: KDE neon 6.2
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-47-generic (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
When switching *from* Autologin Session Wayland  (Session=plasma) *to* X11 the entry in /etc/sddm.conf.d/kde_settings.conf
reads correctly as: Session=plasmax11
Comment 1 Christian Hartmann 2024-10-19 05:05:52 UTC
on *first* Apply is incorrect.  invalid entry:

Session=Plasma (X11)

is *always* created when switching *from* a No-Autologin Settings directly *to* Autologin to *X11* Session.