Fix the reference to KDE (or remove them when not strictly needed).
The code still compiles.
... and few in-line questions for the reviewers.
Should this be "Session" or "Plasma Session"? Aren't the settings changed here valid for all desktops which follow the XDG spec?
I explicitly wrote "Plasma" because this setting seems to be Plasma-specific. Did I understand it correctly?
Remove references to kdmrc in the meantime.