nodejs / nodejs/node-core-utils

$XDG_CONFIG_HOME should default to ~/.config

Open
#268 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
313
Forks
137
Avg merge
2d 8h
Merged PRs (30d)
24

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the git-node configuration lookup and trace how an unset XDG_CONFIG_HOME is handled. Compare that behavior with the referenced basedir specification and the existing ~/.config/ncurc example; done means git-node recognizes that configuration when the variable is unset and no longer complains.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.