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

This commit is contained in:
Luke Dashjr 2015-11-17 20:29:42 +00:00
parent 67d4cbab46
commit 2aa49ce9fe

View file

@ -354,7 +354,10 @@ boost::filesystem::path static GetAutostartDir()
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()