Skip to content

prefer XDG_CACHE_HOME before os specific cache directories#164

Open
dsisnero wants to merge 1 commit into
red-data-tools:mainfrom
dsisnero:patch-1
Open

prefer XDG_CACHE_HOME before os specific cache directories#164
dsisnero wants to merge 1 commit into
red-data-tools:mainfrom
dsisnero:patch-1

Conversation

@dsisnero

Copy link
Copy Markdown

I think the correct logic is to use XDG_CACHE_HOME if it is given and if not, use platform defaults

I think the correct logic is to use XDG_CACHE_HOME if it is given and if not, use platform defaults
@kou

kou commented Jan 13, 2023

Copy link
Copy Markdown
Member

Why?
I think that macOS and Windows don't follow XDG.

If we want to change cache directory for Red Datasets, we should introduce our environment variable such as RED_DATASETS_CACHE_DIR or something.

@dsisnero

dsisnero commented Jan 14, 2023 via email

Copy link
Copy Markdown
Author

@kou

kou commented Jan 15, 2023

Copy link
Copy Markdown
Member

Do you know products that use XDG on Windows/macOS? If there are many products, we can follow it. Otherwise, we should introduce an environment variable only for us.

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