dfaure added a comment.

  If you agree that showing an error message after hitting Cancel on the kauth 
prompt is suboptimal (I didn't actually test it), then it seems to me that a 
simple solution to turn `bool isPrivilegeOperationAllowed()` into a method that 
returns an enum? (same for `execWithElevatedPrivilege`)
  
  The values would be
  
  - Allowed (-> proceed)
  - Not allowed / not supported ( -> show error)
  - Canceled (-> don't show error)
  
  It's already a string true/false in the socket, that's easily extendable.

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

To: chinmoyr, dfaure, #frameworks
Cc: #frameworks

Reply via email to