prefer XDG_CACHE_HOME before os specific cache directories#164
Open
dsisnero wants to merge 1 commit intored-data-tools:mainfrom
Open
prefer XDG_CACHE_HOME before os specific cache directories#164dsisnero wants to merge 1 commit intored-data-tools:mainfrom
dsisnero wants to merge 1 commit intored-data-tools:mainfrom
Conversation
I think the correct logic is to use XDG_CACHE_HOME if it is given and if not, use platform defaults
Member
|
Why? If we want to change cache directory for Red Datasets, we should introduce our environment variable such as |
Author
|
because, for windows, and, macos, if it is not set - normal mode, it will
not be used. For windows, as an example, I have a work computer that
doesn't have very much memory on the main hard drive so by setting this
XDG_CACHE_HOME , I can have my config in the location I want. All my
configs for every os are in the same location - under XDG_CACHE_HOME - can
back this up easily on git
So - if it is not set, it will follow normal conventions but if it is set -
can override to a location the user wants.
…On Fri, Jan 13, 2023 at 1:04 AM Sutou Kouhei ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#164 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABQRMQJDYODPOPRBRYSLTWSED7LANCNFSM6AAAAAATZZX4JE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I think the correct logic is to use XDG_CACHE_HOME if it is given and if not, use platform defaults