Skip to content

Support $XDG_CONFIG_HOME for config file #1521

@ptman

Description

@ptman

Instead of only looking for the config file in ~/.sentryclirc please follow https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html and look in $XDG_CONFIG_HOME/sentry/cli.ini (or similar) or $HOME/.config/sentry/cli.ini if $XDG_CONFIG_HOME is unset.

There is even a nice Rust library for this: https://docs.rs/xdg/ https://github.com/whitequark/rust-xdg

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions