According to the documentation, the system config path for Linux is /etc/dvc/config, but it seems like the actual config path is /etc/xdg/dvc/config.
DVC version: 1.11.8 (pip)
---------------------------------
Platform: Python 3.8.3 on Linux-4.15.0-128-generic-x86_64-with-glibc2.10
Supports: All remotes
I'm using Ubuntu 18.04, if that helps.
Transfering to docs.
For the record: we use https://pypi.org/project/appdirs/ to determine a correct config location on this particular system, and it depends on different env vars, e.g. XDG_*. We need to adjust the docs to better reflect the configurable nature of those default dirs.
On dvc side we have --show-origin currently in the works, that will help with that too. https://github.com/iterative/dvc/pull/5126
Let me compile the correct list of values for these here at least...
@efiop yep, that would help if you could write a summary of the change that is needed. Even here in the ticket should be enough.
/etc/xdg looks liek an Arch Linux thing. It probably changes by distro? I guess we could just make a note about that for Linux
Ok, so according to https://github.com/ActiveState/appdirs/blob/master/appdirs.py (we use site_config_dir and user_config_dir), in a simplified version:
--global:
Mac: ~/Library/Preferences/dvc/config
Linux: ~/.config/dvc/config or $XDG_CONFIG_HOME/dvc/config
--system
Mac: /Library/Preferences/dvc/config
Linux: /etc/xdg/dvc/config or $XDG_CONFIG_DIRS[0]/dvc/config
@jorgeorpinel /etc/xdg is not just an Arch thing, you are right that it can be on any distro and might even differ between different versions. IIRC i've seen different default XDG_CONFIG_DIRS on different versions of ubuntu before. It can be set to /etc too, but it is rather uncommon these days, at least from what've experienced (not at all an expert opinion) :slightly_smiling_face: