package xdg
XDG Base Directory Specification
Install
dune-project
Dependency
Authors
Maintainers
Sources
dune-3.20.0.tbz
sha256=767999da81e528484139ecfe927288ffe521ac2467462a40d6a760ed789ba086
sha512=18f6a293cb5d4423a3bf69ce9559b40e7075e49b13c79166f2aacfa55cbc2609e20938bad889b43df0d5a3396ea034e405631d3757da6164c51be375e5751632
doc/index.html
xdg - the XDG base directories specification
Introduction
Where should your application put its files? Somewhere in $HOME
? Do non-Unix systems have something like that? What about cache files?
Fortunately, there is a standard for this - the XDG base directories specification.
This library implements this standard and extends it in a way that works on Windows too.
Example
This computes the name of a config file for a program named acme
.
let config_file_path =
let xdg = Xdg.create ~env:Sys.getenv_opt () in
let config_dir = Xdg.config_dir xdg in
Filename.concat config_dir "acme"
API documentation
The entry point for this library is Xdg
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page