shadowproject / shadow

ShadowCore integration/staging tree
MIT License
96 stars 60 forks source link

Unable to change the data directory for version 1.4 #50

Closed otrsconfig closed 8 years ago

otrsconfig commented 8 years ago

On version 1.4 (haven't tried on 1.5 since I have another issue with that one), it apparently ignores the -datadir=Directory switch when calling the executable.

Am I doing something wrong? How can I set up another directory? I'm doing this: D:\Shadow\umbra.exe -datadir=D:\Shadow

kewde commented 8 years ago

Hi @otrsconfig, What version of Windows are you running?

One of our team members has tested this and it's working for them. I'll be trying this out myself to verify.

@rynomster any idea?

kewde commented 8 years ago

You may want to try shifting to the following configuration; Might be an issue with having exe in the datadir.

D:\Shadow\umbra.exe -datadir=D:\Shadow\datadir

kewde commented 8 years ago

I'm having the same issue, datadir is being ignored. We'll look into this, thank you.

otrsconfig commented 8 years ago

Hi, thanks for looking into it. 1.4, tried on the same and different partitions, with and without a trailing "\", same behavior.

dasource commented 8 years ago

@otrsconfig I am pretty sure the syntax on the QT Wallet is umbra.exe -conf -datadir=D:\Shadow\datadir

otrsconfig commented 8 years ago

Hi, just tried with this and it's still using the datadir at %APPDATA%\Shadow when running like this:

C:\shadow_1.4.0.3_win64\shadow.exe -conf -datadir=E:\Shadow\data

Happens with 1.4 and 1.5. If I use a directory that does not exist, I get a warning and the software won't launch. But it keeps using the BC at %APPDATA%.

Thanks.

kewde commented 8 years ago

Verified and looking into :+1:

kewde commented 8 years ago

@rynomster could you peak into this if you happen to have a bit of time?

rynomster commented 8 years ago

Will have a look today

On Sep 28, 2016 14:11, "Kewde" notifications@github.com wrote:

@rynomster https://github.com/rynomster could you peak into this if you happen to have a bit of time?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shadowproject/shadow/issues/50#issuecomment-250149165, or mute the thread https://github.com/notifications/unsubscribe-auth/AGl7FVJ7T3CypmbZ1J1EmE1Wn8Pq-CT6ks5qulmJgaJpZM4J6H5L .

rynomster commented 8 years ago

it seems setting -datadir is not affective. What does work is creating a conf file in E:\Shadow\data, i.e.: E:/shadow/data/umbra.conf, and running the exe with umbra.exe -conf=E:/shadow/data/umbra.conf Inside the config file I addeddatadir=E:/shadow/data` on a new line and it seems to work.

I'll the datadir arg, its not being set in init.cpp

kewde commented 8 years ago

Thanks @rynomster

kewde commented 8 years ago

@otrsconfig this is fixed in #63 We can close this issue now.