xdg_base_directory
Version, currently master branch1 version
- master branchlatestMay 6, 2024
github.com/tijn/xdg_base_directory
A Crystal implementation of the XDG Base Directory specs
6 stars
2 dependents
License: GPL
Installation
# Add this to your shard.yml
dependencies:
xdg_base_directory:
github: tijn/xdg_base_directory
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.27.2- License
- GPL
- Author
- Tijn Schuurmans
Dependencies
This version declares no dependencies.
README
xdg_base_directory
An implementation of the XDG Base Directory specs in Crystal-lang
Installation
Add this to your application's shard.yml:
dependencies:
xdg_base_directory:
github: tijn/xdg_base_directory
Usage
require "xdg_base_directory"
xdg_dirs = XdgBaseDirectory.app_directories("my-awesome-app")
settings = xdg_dirs.config.read_file("settings.ini")
xdg_dirs.config.write_file("settings.ini.backup", setttings)
# open the cache directory
xdg_dirs.cache.to_dir # returns a Dir instance
# open the runtime directory
xdg_dirs.runtime_dir.to_dir # returns a Dir instance
Contributing
- Fork it ( https://github.com/tijn/xdg_base_directory/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
- tijn Tijn Schuurmans - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- May 6, 2024
- Crystal
0.27.2- Indexed
- yes
Dependents
Repository
github.com/tijn/xdg_base_directory
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 23, 2026
- Synced
- Sep 23, 2026
- Versions
- 1