Bugfix: Use unique autostart filenames on Linux for testnet/regtest
This commit is contained in:
parent
67d4cbab46
commit
2aa49ce9fe
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue