-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Implement XDG base directories #120
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
Comments
This could be of some use: http://bazaar.launchpad.net/~chipaca/go-xdg/trunk/view/head:/README.md |
I don't agree with this setup. the only path needed is the root of the repo/config, which will have a default location but be changeable with a flag (and maybe an env var). Everything else needed will be defined in that file. Sorry! Thanks though. |
(we can revisit this in the future if there is a strong need to do so) |
There is nothing preventing the configuration file to be stored in a standard location, is there ? And is there anything against putting the database in a standard location unless a specific location was specified in the configuration file. |
Only retrieve one value when fetching public key from DHT
@Stebalien Any chance this could be re-opened? Kubo is one of the few applications which doesn't store config files in Kubo equivalent to: n0-computer/iroh#218 |
@Winterhuman actually any reason you can't just use |
@Jorropo Using |
I'd personally like this to happen, but I'd start out by defaulting to However, I won't be working on it. I'll open it up so it can be triaged, but it may be closed again as "not a priority" |
I'll vote for this to be classed P4, Help wanted. |
Having
Keeping For new installations (where $ mkdir -p $XDG_CONFIG_HOME/ipfs
$ mkdir -p $XDG_DATA_HOME/ipfs
$ mv $HOME/.ipfs/config $HOME/.ipfs/datastore_spec $HOME/.ipfs/version $XDG_CONFIG_HOME/ipfs
$ mv $HOME/.ipfs/blocks $HOME/.ipfs/datastore $HOME/.ipfs/keystore $XDG_DATA_HOME/ipfs For now, as a workaround, I'll probably set I am a pretty new user to |
See: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Basically:
configuration should be searched in:
Some rules :
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)
The text was updated successfully, but these errors were encountered: