Browse Source

Merge pull request #7045

2aa49ce Bugfix: Use unique autostart filenames on Linux for testnet/regtest (Luke Dashjr)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
72dccfc29d
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 5
      src/qt/guiutil.cpp

5
src/qt/guiutil.cpp

@ -681,7 +681,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