package xdg

  1. Overview
  2. Docs
XDG Base Directory Specification

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.24.1.tbz
sha256=0a8eaa62dfcb945802bcaf9a6f2026ca5228333ee391a1bdedd3e70a3f26ea2c
sha512=b9faebfa70cf87e5eb582a0cdd1cb2aa99b8195342afdd7f462365444a0a904819cacc8522a5a85800ed2281f84e82d49360010de7ff16e28047a74df9258e5e

doc/xdg/Xdg/index.html

Module XdgSource

Sourcetype t

Base directories. Values of type t are created using create.

Sourceval home_dir : t -> string

The user's home directory. Uses $USERPROFILE on Windows, $HOME otherwise.

Sourceval config_dir : t -> string

The directory where the application should read/write config files.

Sourceval data_dir : t -> string

The directory where the application should read/write data files.

Sourceval cache_dir : t -> string

The directory where the application should read/write cached files.

Sourceval state_dir : t -> string

The directory where the application should read/write state files.

Sourceval runtime_dir : t -> string option

The directory where the application should store socket files.

Sourceval create : ?win32:bool -> env:(string -> string option) -> unit -> t

Constructor of type t. ~win32 (default: Sys.win32) determines whether to use Win32-specific APIs. ~env is the function to get environment variables, typically Sys.getenv_opt.