package obus

  1. Overview
  2. Docs
Pure Ocaml implementation of the D-Bus protocol

Install

Dune Dependency

Authors

Maintainers

Sources

obus-1.2.5.tar.gz
md5=81eb1034c6ef4421a2368a9b352199de
sha512=4b540497188a7d78f4f14f94c6b7fdff47dd06436a34e650ff378dd77bb3e2acb7afd45cd72daf4ddba06e732e9944d560c2882dc37862f1b1f1bb6df37e6205

doc/obus.policykit/Policy_kit/index.html

Module Policy_kitSource

PolicyKit interface

Sourceval not_authorized : OBus_error.name

Exception raised by services when trying to perform an action for which we do not have authorization from PolicyKit

Sourceval obtain_authorization : action_id:string -> ?xid:int -> pid:int -> unit -> bool Lwt.t

obtain_authorization ~action_id ~xid ~pid tries to obtain authorization for action_id. It returns whether it succeed or not.

  • parameter action_id

    PolicyKit action identifier; see PolKitAction

  • parameter xid

    X11 window ID for the top-level X11 window the dialog will be transient for

  • parameter pid

    Process ID to grant authorization to

OCaml

Innovation. Community. Security.