Skip to content

Honor XDG_CONFIG_HOME for config discovery #577

@ofek

Description

@ofek

The config file resolution currently looks for $HOME/.config/dust/config.toml and $HOME/.dust.toml, so users who set XDG_CONFIG_HOME need to pass --config manually. Please resolve the default config path via XDG e.g. ${XDG_CONFIG_HOME:-$HOME/.config}/dust/config.toml. Popular Rust crates like dirs, directories, and xdg already follow this behavior. I'd recommend the former for this code base via its config_dir function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions