Bug 471040 - Can’t save preferences in kcm_sddm
Summary: Can’t save preferences in kcm_sddm
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_sddm (show other bugs)
Version: 5.27.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://discuss.kde.org/t/cant-save-p...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-14 22:04 UTC by Roke Julian Lockhart Beedell
Modified: 2023-06-14 23:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27.6


Attachments
kcmshell5 launch log. (143.42 KB, image/png)
2023-06-14 22:04 UTC, Roke Julian Lockhart Beedell
Details
Replication of the issue (700.73 KB, video/mp4)
2023-06-14 22:07 UTC, Roke Julian Lockhart Beedell
Details
sddm_kcm's main.qml file (8.06 KB, text/x-qml)
2023-06-14 22:07 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2023-06-14 22:04:11 UTC
SUMMARY

I Can’t save preferences in kcm_sddm.

STEPS TO REPRODUCE

1. kcmshell5 kcm_sddm
2. Modify preferences and try to save them, per https://imgur.com/nPH2SMX

OBSERVED RESULT

They don't save, per https://imgur.com/nPH2SMX

EXPECTED RESULT

The preferences should save.

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20230612
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.9
Kernel Version: 6.3.6-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 5700

ADDITIONAL INFORMATION

https://discuss.kde.org/t/cant-save-preferences-in-kcm-sddm/2104?u=rokejulianlockhart
Comment 2 Roke Julian Lockhart Beedell 2023-06-14 22:07:09 UTC
Created attachment 159665 [details]
Replication of the issue

https://imgur.com/nPH2SMX
Comment 3 Roke Julian Lockhart Beedell 2023-06-14 22:07:44 UTC
Created attachment 159666 [details]
sddm_kcm's main.qml file

https://discuss.kde.org/t/cant-save-preferences-in-kcm-sddm/2104/4?u=rokejulianlockhart
Comment 4 Nate Graham 2023-06-14 23:39:46 UTC
Ok, so two things are going on here.
1. The KCM is failing to save, for an unknown reason
2. The code to show an error message in this circumstance is broken, since https://invent.kde.org/plasma/sddm-kcm/-/commit/d6d13d382b4b7d4b452c890004f639b6eea20670 where a variable was renamed in only 2 out of 3 places.

I'll fix #2 right now. You can fix it yourself on your system by changing "message" to "untranslatedMessage" in line 31 of main.qml. Then you can try saving again and it will show you the actual error message.

Let's use this bug report to track the broken error message code. Then you can post about the reason why it's failing in https://discuss.kde.org/t/cant-save-preferences-in-kcm-sddm/2104
Comment 5 Bug Janitor Service 2023-06-14 23:43:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/sddm-kcm/-/merge_requests/53
Comment 6 Nate Graham 2023-06-14 23:44:52 UTC
Git commit 7be4a80ee2745134108188891241c401bada5cfe by Nate Graham.
Committed on 14/06/2023 at 23:40.
Pushed by ngraham into branch 'master'.

Fix showing error messages

In main.qml,`message` was renamed to `untranslatedMessage` with
d6d13d382b4b7d4b452c890004f639b6eea20670, but only in 2 out of the 3
places where it's used.
FIXED-IN: 5.27.6

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

https://invent.kde.org/plasma/sddm-kcm/-/commit/7be4a80ee2745134108188891241c401bada5cfe
Comment 7 Nate Graham 2023-06-14 23:45:31 UTC
Git commit d8ca15e88a15df26859a79a376056a222f7d63bd by Nate Graham.
Committed on 14/06/2023 at 23:45.
Pushed by ngraham into branch 'Plasma/5.27'.

Fix showing error messages

In main.qml,`message` was renamed to `untranslatedMessage` with
d6d13d382b4b7d4b452c890004f639b6eea20670, but only in 2 out of the 3
places where it's used.
FIXED-IN: 5.27.6


(cherry picked from commit 7be4a80ee2745134108188891241c401bada5cfe)

M  +1    -1    src/package/contents/ui/main.qml

https://invent.kde.org/plasma/sddm-kcm/-/commit/d8ca15e88a15df26859a79a376056a222f7d63bd