Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement XDG base directory specification (issue #120) #125

Closed
wants to merge 1 commit into from

Conversation

mildred
Copy link
Contributor

@mildred mildred commented Sep 25, 2014

This is how it has been implemented:

  • Unless specified using the -c command line option, the configuration is generally found at ~/.config/go-ipfs/config
  • The -c command line option now specifies the configuration file itself (and not its directory)
  • During ipfs init it is possible to specify the database location using the -d option.
  • The database location generally defaults to ~/.local/share/go-ipfs/datastore
  • If a relative path is found in the configuration file for the database location, this file is relative to the XDG Data directories.

What might be missing is transition code to move/read files already in ~/.go-ipfs

@jbenet
Copy link
Member

jbenet commented Sep 25, 2014

@mildred thanks but i do not want the XDG format. I looked in depth at it, and disagree with it. Sorry, you'll be able to do exactly this by setting an env variable (or passing in -c) and modifying the config file.

@jbenet jbenet closed this Sep 25, 2014
@jbenet
Copy link
Member

jbenet commented Sep 25, 2014

Spelling out how:

  1. use ipfs -c ~/.config/go-ipfs
  2. IPFS_CONFIG=$HOME/.config/go-ipfs (this needs implementing)
  3. change the Datastore location in the config file to point to ~/.local/share/go-ipfs/datastore

laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Feb 25, 2022
Added Experiments.AcceleratedDHTClient option
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Feb 25, 2022
…al-dht-client

Added Experiments.AcceleratedDHTClient option
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Mar 4, 2022
…al-dht-client

Added Experiments.AcceleratedDHTClient option
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Mar 4, 2022
…al-dht-client

Added Experiments.AcceleratedDHTClient option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants