README.md 818 Bytes
Newer Older
1
2
3
4
5
6
# xdg-basedir

This library provides variables for paths in the XDG Base Directory Specification.

The specification can be found at http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

7
8
9
10
## Leiningen

[![Clojars Project](http://clojars.org/xdg-basedir/latest-version.svg)](http://clojars.org/xdg-basedir)

11
12
## Examples

13
```clj
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(require '[xdg-basedir.dirs :as dirs])

dirs/xdg-data-home
	"/home/johannes/.local/share"

dirs/xdg-config-home
	"/home/johannes/.config"

dirs/xdg-cache-home
	"/home/johannes/.cache"

dirs/xdg-data-dirs
	["/usr/local/share/" "/usr/share/"]

dirs/xdg-config-dirs
	["/etc/xdg"]

dirs/xdg-runtime-dir
	"/run/user/1000"
```

## License

Copyright © 2015 Johannes Knödtel

Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.