Session file parser: Support sections and respect the Hidden property

Authored by fvogt on Jul 11 2017, 11:08 AM.



Some desktop files have multiple sections, but for now we're only
interested in [Desktop Entry]. Without this patch, every entry was seen
as part of the [Desktop Entry] session, resulting in values getting

Additionally, the Hidden=true property specifies that the desktop file
needs to be treated like it was non-existant.

Same as for sddm.

BUG: 381982

Test Plan

Installed the KCM, now there are no duplicate sessions and the right
Name is shown for icewm-session.desktop.

Diff Detail

R123 SDDM Configuration Panel (KCM)
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
fvogt created this revision.Jul 11 2017, 11:08 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 11 2017, 11:08 AM
davidedmundson accepted this revision.Jul 11 2017, 11:12 AM
davidedmundson added a subscriber: davidedmundson.

We should just port this back to KConfig / QSettings sometime.

This revision is now accepted and ready to land.Jul 11 2017, 11:12 AM
This revision was automatically updated to reflect the committed changes.