xdg.cr
xdg
Simple implementation of the freedesktop.org XDG Base Directory Specification
Installation
-
Add the dependency to your
shard.yml:dependencies: xdg: github: plambert/xdg.cr -
Run
shards install
Usage
require "xdg"
XDG.xdg_config_home # => Path["/home/user/.config"]
XDG.xdg_data_dirs # => [Path["/usr/local/share/"], Path["/usr/share/"]]
The module is also available under the Freedesktop name for callers who prefer to name it after the specification:
Freedesktop.xdg_config_home # => Path["/home/user/.config"]
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/plambert/xdg.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Paul M. Lambert - creator and maintainer
Repository
xdg.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- about 5 hours ago
- February 25, 2026
License
MIT License
Links
Synced at
Sun, 28 Jun 2026 00:00:43 GMT
Languages