Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polkit: Correctly handle the user dismissing the authentication dialog (
#1746) Adapted from elementary/pantheon-agent-polkit#26: * Throw Polkit.Error.CANCELLED when the user dismisses the dialog * Listen for events in the Cancellable object instead of using it Testing: * `pkexec` -> click cancel on dialog -> pkexec exits as dismissed * `pkexec` -> Ctrl-C in terminal -> authentication dialog closes Fixes #1279
- Loading branch information
1 parent
38b69f0
commit 7ba8696
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters