Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: STTrife on July 28, 2014, 01:27:22 PM



Title: bitcoin-qt custom data directory and Chrome links
Post by: STTrife on July 28, 2014, 01:27:22 PM
Hi there, I can't seem to find information about the following issue:

in the documentation it said that you had to add -dataDir=... (or something like that)  to the link to the bitcoin client. this works fine, but
in chrome, when I want to pay at for example www.thuisbezorgd.nl, they give this link with a bitcoin protocol like:
bitcoin:etc .etc.
this link opens the bitcoin client nicely and the payment is made ready automatically which is great, but it DOES NOT use the new data directory if the client is started this way.

How can I fix this? I've looked in the chrome settings and in the settings of windows 7, but I can't even find the link between bitcoin: adress and starting the bitcoin client.

What do I have to do to make it so that links in chrome open the bitcoin client, but WITH the new data directory?
(I have been searching this on google, but I really find the answer...)

thanks!


Title: Re: bitcoin-qt custom data directory and Chrome links
Post by: shorena on July 28, 2014, 02:23:09 PM
Chrome does not handle this, but your OS.
It can be changed via commandline [1]:

Code:
ftype bitcoin

to see what the current setting is.

with

Code:
ftype bitcoin="C:\Program Files\Bitcoin\bitcoin-qt.exe -datadir=d:\mybitcoindata\is\here" "%1"

it should do what you want. Another possibility would be to do it via the registry [2], but ftype should change the same registry key anyway.


[1] source: http://stackoverflow.com/questions/796748/how-can-i-add-a-custom-url-handler-on-windows-like-itunes-itms
[2] as linked from [1] http://msdn.microsoft.com/en-us/library/aa767914%28VS.85%29.aspx