Browse Source

Bugfix: Use unique autostart filenames on Linux for testnet/regtest

0.13
Luke Dashjr 9 years ago
parent
commit
2aa49ce9fe
  1. 5
      src/qt/guiutil.cpp

5
src/qt/guiutil.cpp

@ -354,7 +354,10 @@ boost::filesystem::path static GetAutostartDir()
boost::filesystem::path static GetAutostartFilePath() boost::filesystem::path static GetAutostartFilePath()
{ {
return GetAutostartDir() / "bitcoin.desktop"; std::string chain = ChainNameFromCommandLine();
if (chain == CBaseChainParams::MAIN)
return GetAutostartDir() / "bitcoin.desktop";
return GetAutostartDir() / strprintf("bitcoin-%s.lnk", chain);
} }
bool GetStartOnSystemStartup() bool GetStartOnSystemStartup()

Loading…
Cancel
Save