Fix using avatars from the gallery and from local files

Authored by ngraham on Nov 16 2017, 2:53 AM.

Description

Fix using avatars from the gallery and from local files

Summary:
BUG: 385151

Use a KIO::copy job to ensure that ~/.face gets created correctly, and delete any temp files once they're no longer needed.

Test Plan: Tested in KDE Neon. With this change, ~/.face gets created properly, both when it did not previously exist (i.e. when the user is setting a picture for the first time), and also when it did previously exist (i.e. when the user is changing their picture). Tested for gallery avatars as well as several local files (.png, .jpg, .webp).

Reviewers: apol, Plasma, mlaurent, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

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

Details

Committed
ngrahamNov 16 2017, 2:53 AM
Reviewer
Plasma
Differential Revision
D8793: Fix using avatars from the gallery and from local files
Parents
R128:5c072eab10bd: User Manager KCM text changes and UI modernization
Branches
Unknown
Tags
Unknown