Add support for fingerprint-gui's polkit agent.

Closes #5880.