Skip to content
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

"Start bitcoin on system login" removes additional flags in shortcut. #2197

Closed
PochiRaccoon opened this issue Jan 22, 2013 · 9 comments
Closed
Labels

Comments

@PochiRaccoon
Copy link

I have my data directory on a different drive so I changed all my shortcuts to include "-datadir=D:\BitCoinData" but the shortcut in "%AppData%\Microsoft\Windows\Startup" changes back to the default the next time bitcoin starts up. I do have the "start bitcoin on system login" box checked. I change it to "bitcoin-qt.exe -min -datadir=D:\BitCoinData" but the next time the program boots the shortcut is reverted back to "bitcoin-qt.exe -min". Can you please fix this or provide the best way to have it startup with that data directory?

Or maybe on next client add an option in settings that allows the data directory to be specified?

@laanwj
Copy link
Member

laanwj commented Jan 22, 2013

It would probably be best to add the data directory to the shortcut automatically, to make sure that the bitcoin that automatically starts is the same as the one configured to automatically start.

Then again, this sounds like a very rare scenario, and I recommend simply disabling the option if you manually configured it in the registry.

@Rishodi
Copy link

Rishodi commented Feb 20, 2013

I have the same problem on Windows 2003 using v0.8. It appears that the shortcut in "%USERPROFILE%\Start Menu\Programs\Startup" is being removed and recreated each time that Bitcoin starts up. This effectively removes all existing command line parameters in the Target field of the shortcut and reverts the shortcut back to the default. I tried setting the shortcut to read-only, hoping that the process of reverting it would then fail gracefully, but this causes a fatal error in the client when it is unable to remove the existing shortcut.

@luke-jr
Copy link
Member

luke-jr commented Feb 20, 2013

Workaround: Use a config file.

@Diapolo
Copy link

Diapolo commented Feb 20, 2013

Can some dev tag this low-prio bug please.

@Rishodi
Copy link

Rishodi commented Feb 20, 2013

bitcoin.conf is expected to be found in the data directory, so you can't specify the location of the data directory using the config file.

@Diapolo
Copy link

Diapolo commented Jan 10, 2014

AFAIK we really re-create the .lnk file on every startup, which prevents users from modifying the files properties...
Perhaps we should just stop to Regenerate startup link, to fix links to old versions, which seems silly IMHO.

@laanwj
Copy link
Member

laanwj commented Jan 10, 2014

In master, the data directory can be configured on first startup (or when it's missing, or when bitcoin-qt.exe is started with -choosedatadir). This is stored in the registry.
So there is no reason anymore to provide it in the startup .lnk command line.
All other options can be set in the bitcoin.conf.

@Diapolo
Copy link

Diapolo commented Jan 11, 2014

@laanwj I still think we should NOT re-create that file on every client startup, do you agree?

@cozz
Copy link
Contributor

cozz commented May 29, 2014

This issue can be closed as it has been fixed.

@laanwj laanwj closed this as completed May 29, 2014
MathyV pushed a commit to reddcoin-project/reddcoin-3.10 that referenced this issue Aug 5, 2014
- allows users to add additional paramaters via the autostart link
- related to bitcoin#2197
sidhujag pushed a commit to syscoin/syscoin that referenced this issue Jul 31, 2018
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants