Checks if subject is authorized to perform the action represented by action_id.
Note that polkit_check_authorization_flags_allow_user_interaction <emphasis>SHOULD</emphasis > be passed <emphasis>ONLY</emphasis> if the event that triggered the authorization check is stemming from an user action, e.g. the user pressing a button or attaching a device.
Note the calling thread is blocked until a reply is received. You should therefore <emphasis>NEVER</emphasis> do this from a GUI thread or a daemon service thread when using the polkit_check_authorization_flags_allow_user_interaction flag. This is because it may potentially take minutes (or even hours) for the operation to complete because it involves waiting for the user to authenticate.
Known keys in details include <literal>polkit.message</literal> and <literal>polkit.gettext_domain<
/literal> that can be used to override the message shown to the user. See the documentation for the <link
linkend="eggdbus-method-org.freedesktop.PolicyKit1.Authority.CheckAuthorization">D-Bus method</link> for more details.
| this |
A Authority. |
| subject |
A Subject. |
| action_id |
The action to check for. |
| details |
Details about the action or null. |
| flags |
A set of CheckAuthorizationFlags. |
| cancellable |
A Cancellable or null. |
|
A AuthorizationResult or null if throws is set. Free with unref. |