node-core-utils icon indicating copy to clipboard operation
node-core-utils copied to clipboard

$XDG_CONFIG_HOME should default to ~/.config

Open ChALkeR opened this issue 7 years ago • 4 comments

Ref: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

Atm, that does not work — my XDG_CONFIG_HOME is not overriden (i.e. is unset), I have a config at ~/.config/ncurc, and git-node still complains.

ChALkeR avatar Aug 06 '18 08:08 ChALkeR

require('os').homedir() aready follows $HOME, so the config location should set to process.env.XDG_CONFIG_HOME || `${require('os').homedir()}/.config` instead of just process.env.XDG_CONFIG_HOME.

ChALkeR avatar Aug 06 '18 09:08 ChALkeR

Thanks for reporting, do you want to open a PR to fix that?

joyeecheung avatar Aug 06 '18 09:08 joyeecheung

This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

github-actions[bot] avatar Aug 16 '20 00:08 github-actions[bot]

This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

github-actions[bot] avatar Nov 15 '20 00:11 github-actions[bot]