ipfs/kubo

Implement XDG base directories

Open

#120 aberto em 24 de set. de 2014

Ver no GitHub
 (11 comments) (0 reactions) (0 assignees)Go (2.725 forks)batch import
P2help wanted

Métricas do repositório

Stars
 (13.906 stars)
Métricas de merge de PR
 (Mesclagem média 4d 2h) (28 fundiu PRs em 30d)

Description

See: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Basically:

configuration should be searched in:

  • XDG_CONFIG_HOME/go-ipgs/config
  • XDG_CONFIG_DIRS/go-ipgs/config

Some rules :

  • XDG_CONFIG_HOME defaults to HOME/.config when not set
  • XDG_CONFIG_DIRS defaults to /etc/xdg when not set

The same logic applies to persistent data files (the one we want to keep) and cached data files (the one we may delete at any moment)

Guia do colaborador