D6198: Add KAuth support to delete operation

David Edmundson noreply at phabricator.kde.org
Sun Jun 18 16:14:27 UTC 2017


davidedmundson added inline comments.

INLINE COMMENTS

> file.actions:5
> +Policy=auth_admin
> +Persistence=session

We don't want session persistence

It would mean if you prompt the user to delete a file, any rogue plugin in Dolphin can now remove any file without prompts.

> helper.cpp:46
> +        if (errno == EACCES || errno == EPERM) {
> +            QVariantMap errorData;
> +            errorData.insert(QStringLiteral("errormessage"), i18n("Access Denied!"));

Rather than replying with Success when you fail, with your own structure use setError (not errorCode) and setErrorDescription

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D6198

To: chinmoyr, elvisangelaccio, #frameworks
Cc: davidedmundson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170618/4a367be0/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list