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.
Checklist
news
entryThis PR make condax comply with XDG Base Directory specifications. When
~/.condaxrc
is not present, it will be searched into$XDG_CONFIG_HOME/condax/condaxrc
and$XDG_CONFIG_HOME/condax/.condaxrc
, following this order of priority.This feature has already been added in conda, mamba and micromamba.
NB: the other condax directories can be made compliant to the XDG schemas by adding this line in condaxrc:
prefix_path: "~/.local/share/condax"
.UPDATE: on second thought, I might as well add all the directories looked by conda, including
/etc/condax
and/var/lib/condax
for system-wide configurations.So, this would be the priority for the search path (higher to lower):
$CONDAXRC
(if variable is set)~/.condaxrc
$XDG_CONFIG_HOME/condax/condaxrc
(if variable is set)$XDG_CONFIG_HOME/condax/.condaxrc
(if variable is set)~/.condax/condaxrc
~/.condax/.condaxrc
~/.config/condax/condaxrc
~/.config/condax/.condaxrc
/etc/condax/condaxrc
/etc/condax/.condaxrc
/var/lib/condax/condaxrc
/var/lib/condax/.condaxrc
How does it look?