package wayland

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wayland.Unix_transportSource

Send messages over a Unix-domain socket.

Sourcetype t = < S.transport ; close : unit Lwt.t ; socket : Lwt_unix.file_descr >
Sourceval of_socket : Lwt_unix.file_descr -> t
Sourceval socket_path : ?wayland_display:string -> unit -> string

socket_path () returns the path to the wayland socket to use.

  1. If $WAYLAND_DISPLAY is set then it returns that. If the path is relative then "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" is used.
  2. If $WAYLAND_DISPLAY is not set, it defaults to "wayland-0".
  • parameter wayland_display

    Use this as the value of $WAYLAND_DISPLAY instead of reading it from the environment.

Sourceval connect : unit -> t Lwt.t

connect () connects to the Wayland server's socket:

  1. If $WAYLAND_SOCKET is set then that file descriptor is used.
  2. Otherwise, socket_path () is used.