-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Daemon: Store blockchain in '~/.local/share/bitmonero' by default #8202
base: master
Are you sure you want to change the base?
Daemon: Store blockchain in '~/.local/share/bitmonero' by default #8202
Conversation
If XDG_DATA_HOME if found, it's preferred. For Mac it will be '~/Library/Application Support/bitmonero'
ab7dc9a
to
90b02eb
Compare
Does this handle backwards compatibility? |
Short answer: no It only sets the default directory. If the user chooses via command line to use a different directory, then this code won't have any effect. OTOH, if the user doesn't set the data directory explicitly nor moves the |
@selsta : My proposal for retaining backward compatibility would be the following:
Shall I go in this direction? |
Sounds reasonable. |
Also we should maybe discuss this in the next dev meeting. Changing the default location might end up in confusion as every user is aware of ~/.bitmonero now. Honestly as a Mac user I can never find stuff inside |
OK, let's discuss it. The latest commit brings the backward compatibility, as described in my previous comment.
I get ya. I can settle with |
If we're changing it anyway, why not make it |
This complicates the transition a little bit, since I need an another variable for the "monero" string, alongside the ".bitmonero", which has to stay there for backward compatibility. That said, I also find it reasonable, if you ask me. |
This seems annoying for no good reason. The claim is the first post that it "fixes" something is disingenuous since the report does not report a bug, just a preference. |
This is simply how you link an issue to a PR. |
I agree that this seems like needless churn. I would favor enabling support for XDG_DATA_HOME, but not changing the existing default in other cases. It's worth noting that, per Linux filesystem standard the newer XDG specification isn't mandatory, and the current approach is perfectly acceptable:
As for this matter:
I suggest "resolves" in cases like this one, where there's no bug, but rather, a feature request. |
Done |
Is this still up for merge? |
Hi @digitalwtf , As far as I can see, there's nothing technical that would prevent anybody from merging it: The only reason that I can imagine why it's not merged at all, is the few decisive persons' prioritizing issue - namely all focusing on a single thing only all the time and calling it "diversity". |
@digitalwtf The reason it's not yet merged I suspect is because it doesn't appear to have strong enough support. @moneromooo-monero and @iamamyth make good arguments against merging:
The suggestion to enable/support XDG_DATA_HOME but not change the rest, seems the most sensible and least invasive approach. |
Resolves 3727 (Only the data part of it)
The default storage path for blockchain is being switched from
~/.bitmonero
to~/.local/share/bitmonero
under Linux, and from~/.bitmonero
to~/Library/Application Support/bitmonero
under MacOSX.If
XDG_DATA_HOME
if found, it's preferred over everything else.