If you trigger dash-cli without a -datadir= set on the commandline, it will ALWAYS create $HOME/.dashcore. It doesn't matter what your datadir setting is in dash.conf. That is ignored just long enough to create that directory. THEN it switches its location to whatever you set it to.
Easy to demonstrate. Do this as a normal user...
Edit your dash.conf and set datadir to explicitly where is it located, even if it is /home/<username>/.dashcore (note, mine is /var/lib/dashcore)
Now do this...
HOME=/ dash-cli -conf=/path/to/your/dash.conf
I get in response...
EXCEPTION: N5boost10filesystem16filesystem_errorE
boost::filesystem::create_directory: Permission denied: "/.dashcore"
dash in AppInitRPC()
What that is saying is that regardless of your datadir setting in your dash.conf, we are still trying to create a $HOME/.dashcore -- I used / in this example because it will break with a permissions error and demonstrate that the program is attempting to create the directory.
Side note, that permissions error message is ugly.
Where this is a PITA: I don't use ~/.dashcore as my data directory. And my dash.conf states that. But guess what gets created in my home directoyr if I do a dash-cli -conf=/path/to/dashconf ... a .dashcore directory.
I could specify a -datadir=... but I am not trying to override the dash.conf file, so that is... superfluous.
Platform: Linux, 64bit, Fedora 25
If you trigger
dash-cli
without a -datadir= set on the commandline, it will ALWAYS create $HOME/.dashcore. It doesn't matter what your datadir setting is in dash.conf. That is ignored just long enough to create that directory. THEN it switches its location to whatever you set it to.Easy to demonstrate. Do this as a normal user...
dash.conf
and set datadir to explicitly where is it located, even if it is/home/<username>/.dashcore
(note, mine is/var/lib/dashcore
)I get in response...
What that is saying is that regardless of your datadir setting in your dash.conf, we are still trying to create a
$HOME/.dashcore
-- I used/
in this example because it will break with a permissions error and demonstrate that the program is attempting to create the directory.Where this is a PITA: I don't use ~/.dashcore as my data directory. And my dash.conf states that. But guess what gets created in my home directoyr if I do a
dash-cli -conf=/path/to/dashconf
... a.dashcore
directory.I could specify a
-datadir=...
but I am not trying to override thedash.conf
file, so that is... superfluous.Thanks. -t0dd