package xdg
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
On This Page
  
  
  XDG Base Directory Specification
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      dune-3.19.0.tbz
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=d2f617dfd34f7d882f4181a22e359bb90b46669ed87b2650eb842f0532fc696c
    
    
  sha512=9bd4c5825076c88192425f1462fedab1100d5b83a75dfe65592255b127690503b01b61c964990272abe54f0a01a14587ca464e438fa8b9d8560d2576773f39a8
    
    
  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