dominictarr / rc

The non-configurable configuration loader for lazy people.
Other
1.02k stars 97 forks source link

Search in XDG environment variables #68

Open lambda-fairy opened 9 years ago

lambda-fairy commented 9 years ago

The XDG spec defines two environment variables ($XDG_CONFIG_HOME and $XDG_CONFIG_DIRS) in which to search for config files.

Since the majority of Linux desktops follow this standard, it's worth supporting these variables as well.

dominictarr commented 9 years ago

are you building or do you know of application where not supporting this is causing a problem? Or do you use a custom XDG configuration and is rc putting files in the wrong place for you?

legodude17 commented 8 years ago

Given that this is a npm and node module I don't think that this is necessary.

manchuck commented 3 months ago

Why does this package not support $XDG_CONFIG_HOME? It's a standard used in all OS's and is pretty common. Granted, most of the time $XDG_CONFIG_HOME is just used set to $HOME/.config (which is supported), but that does not always mean it will point there