Check if sddm user exists

Authored by filipf on Oct 4 2019, 3:12 PM.

Description

Check if sddm user exists

Summary:
Sddm-kcm should depend on sddm.
Sddm sets up an sddm user which is used to run the greeter.
Therefore it should not be possible to run sddm-kcm without an sddm user existing.

But if it should happen that's the case, this patch adds a check for the sddm user.
If the user is not present, everything will be aborted and an error message will pop-up.

openSUSE BUG:

Test Plan:
changed line QString sddmHomeDirPath = KUser("sddm").homeDir(); to look up some bogus user
syncing and resetting is aborted, error message pops up

Reviewers: Plasma, davidedmundson, ngraham, VDG, fvogt

Reviewed By: ngraham, VDG

Subscribers: davidedmundson, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D23378

Details

Committed
filipfOct 4 2019, 3:12 PM
Reviewer
VDG
Differential Revision
D23378: Check if sddm user exists
Parents
R123:52d13fe7f16c: Update version number for 5.16.90 GIT_SILENT
Branches
Unknown
Tags
Unknown