-
Notifications
You must be signed in to change notification settings - Fork 336
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
gsutil ignores XDG basedir spec #991
Comments
I just found .gsutil in my home directory I don't know what applications use it though |
This should be fixed. |
Guys, please fix this. This behavior is unacceptable in 2021, please stop filling our home directories with trash. |
Can you elaborate more on this? It could be useful in the meantime. |
Exactly as it says. You'd set and within there you'd put gsutil/gslib/commands/config.py Lines 338 to 342 in e886dc4
Not tried it though |
Now that |
I was excited to hear this! Unfortunately, I can't find a If anyone happens to know a way to use |
Unfortunately we haven't completed |
Glad to hear it! Is there a tracking issue I can follow? |
poke 😀 |
We have it scheduled for Q1, so with luck you should see it by the end of March. |
Many *nix programs now adhere to the XDG Base Directory Specification. I'd love to see gsutil follow suit, or at least gain some built-in compatibility with it.
Here is the spec itself, and while I don't use Arch Linux, there's a good write-up on the wiki that explains the spec a bit more. It also has a list of programs that utilize the spec and workarounds for some of those that don't.
As it specifically relates to
gsutil
, it would be nice if the program checked for the configuration file in$XDG_CONFIG_HOME/gsutil/boto
(defaulting back to~/.boto
), and for the state directory in$XDG_CACHE_HOME/gsutil
(defaulting back to~/.gsutil
).(I know you can set the
BOTO_CONFIG
environment variable to set the location of the config file, and inside said config file you can specifystate_dir
, but when you're runninggsutil
throughgcloud
it's not always obvious where to do that.)The text was updated successfully, but these errors were encountered: