-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support $XDG_CONFIG_HOME for config file #1521
Comments
There is only a single place it needs to be updated at - Lines 455 to 462 in a29838b
I'm happy to assist if you'd like to submit a PR :) |
Would LOVE to see this get done! |
We'll have to make sure we first try reading from the legacy path |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Enable discovery of the global sentry-cli config file in paths /sentry/sentrycli.ini and /Users/eliasram/.config/sentry/sentrycli.ini, allowing users to adhere to the XDG specifications Fixes GH-1521
If .sentryclirc does not exist, look for the global config file in $XDG_CONFIG_HOME/sentry/sentrycli.ini and $HOME/.config/sentry/sentrycli.ini, allowing users to adhere to the XDG specifications. Fixes GH-1521
If the global config file does not exist in the home directory, look in the following paths: - Linux: $XDG_CONFIG_HOME/sentry/sentrycli.ini and $HOME/.config/sentry/sentrycli.ini - Mac: $HOME/Library/Application Support/sentry/sentrycli.ini - Windows: {FOLDERID_RoamingAppData} This enables users to keep their home dir clean, adhering to standards such as XDG on linux. Fixes GH-1521
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
The text was updated successfully, but these errors were encountered: