package obus

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.0.tar.gz
sha256=b8a0707f03d525a98c1c5a380b07074e52f2d26918c7b2ad90b5cc0f99a67f2d
md5=0896d5078bfd486a65cf9fa73a984b3f

doc/obus.policykit/Policy_kit/index.html

Module Policy_kit

PolicyKit interface

val not_authorized : OBus_error.name

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

val 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.