xdg.cr

Simple implementation of the Freedesktop XDG Base Directory specification

xdg

Simple implementation of the freedesktop.org XDG Base Directory Specification

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      xdg:
        github: plambert/xdg.cr
    
  2. 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

  1. Fork it (https://github.com/plambert/xdg.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

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