Bugfix: Use unique autostart filenames on Linux for testnet/regtest
This commit is contained in:
parent
67d4cbab46
commit
2aa49ce9fe
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user