Skip to content
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

use xdg compliant path for config #447

Conversation

jsuchan-reef
Copy link
Collaborator

@jsuchan-reef jsuchan-reef commented Nov 22, 2023

  • addressing b2 should respect the spec's default fallback for XDG_CONFIG_HOME B2_Command_Line_Tool#958

  • to avoid making this a breaking change and ignoring existing config file in non-XDG path, there's a new step of checking for given file before checking XDG path. That makes the logic more consistent for both scenarios when profile is provided and when it's not.

  • the same change in docstring needs to be done in B2 CLI repo, but let's validate the approach here first before duplicating the work.

@jsuchan-reef jsuchan-reef force-pushed the yed/cli958-xdg-compliant-config-path branch 4 times, most recently from 401ae83 to 0471968 Compare November 23, 2023 11:42
@jsuchan-reef jsuchan-reef force-pushed the yed/cli958-xdg-compliant-config-path branch from 44802be to c4672b7 Compare November 23, 2023 13:26
b2sdk/account_info/sqlite_account_info.py Outdated Show resolved Hide resolved
b2sdk/account_info/sqlite_account_info.py Outdated Show resolved Hide resolved
test/unit/account_info/test_account_info.py Outdated Show resolved Hide resolved
test/unit/account_info/test_account_info.py Outdated Show resolved Hide resolved
@mjurbanski-reef mjurbanski-reef merged commit fb8441f into Backblaze:master Dec 1, 2023
22 checks passed
@mjurbanski-reef mjurbanski-reef deleted the yed/cli958-xdg-compliant-config-path branch December 1, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants