Bug 495025 - SDDM System Settings to Autologin into X11 Session applies invalid value in /etc/sddm.conf.d/kde_settings.conf on *first* Apply
Summary: SDDM System Settings to Autologin into X11 Session applies invalid value in /...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_sddm (show other bugs)
Version: 6.2.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-19 05:02 UTC by Christian Hartmann
Modified: 2024-10-25 05:14 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 3 Christian Hartmann 2024-10-22 06:09:57 UTC
Observed behavior only affects a change from no-auto-login to auto-login into *X11*.  A change from no-auto-login to a *Wayland* Session sets the correct value (Session=plasma) in /etc/sddm.conf.d/kde_settings.conf, although the text in the UI reads "Plasma (Wayland)" following the same pattern as "Plasma (X11)".
Comment 4 Anthony Fieroni 2024-10-22 12:03:12 UTC
Git commit c9cfab7ee6192b25acc02d7fefe0552c7db5bae0 by Anthony Fieroni.
Committed on 22/10/2024 at 05:56.
Pushed by davidre into branch 'master'.

Fix autologin session value

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>

M  +1    -1    src/ui/Advanced.qml

https://invent.kde.org/plasma/sddm-kcm/-/commit/c9cfab7ee6192b25acc02d7fefe0552c7db5bae0
Comment 5 Bug Janitor Service 2024-10-22 12:03:41 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/sddm-kcm/-/merge_requests/82
Comment 6 David Redondo 2024-10-22 12:10:08 UTC
Git commit 980813b76e37c50eb38afd05de839168047921f5 by David Redondo.
Committed on 22/10/2024 at 12:03.
Pushed by davidre into branch 'Plasma/6.2'.

Fix autologin session value

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>


(cherry picked from commit c9cfab7ee6192b25acc02d7fefe0552c7db5bae0)

Co-authored-by: Anthony Fieroni <bvbfan@abv.bg>

M  +1    -1    src/ui/Advanced.qml

https://invent.kde.org/plasma/sddm-kcm/-/commit/980813b76e37c50eb38afd05de839168047921f5
Comment 7 Nate Graham 2024-10-22 15:51:01 UTC
Does that fix the whole thing?
Comment 8 Christian Hartmann 2024-10-24 09:39:44 UTC
Came today in Neon and works for me!   Correct values for all possible changes.  Great work!
Comment 9 Nate Graham 2024-10-24 13:42:44 UTC
Great news! It came in Neon testing or unstable, I assume?
Comment 10 Christian Hartmann 2024-10-24 14:18:52 UTC
actualy i am not sure :(

it is a at least five year old install and just updated lately to plasma 6 and to 24.04.

my testing installs in a vm labels itself as 'KDE neon Testing Edition' and 'Unstable' respectivly, it is likely the user edition.

what i get from system info:

Operating System: KDE neon 6.2
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-47-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-4670 CPU @ 3.40GHz
Memory: 31,2 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 750 Ti/PCIe/SSE2
Comment 11 Nate Graham 2024-10-24 16:17:08 UTC
it sounds like your VM is a bit confused, but clearly you got the change somehow!
Comment 12 Christian Hartmann 2024-10-24 17:57:08 UTC
sorry, german native here.

the bare metal install is the user edition.

on top i have just some VM installs

best