Merge pull request #7045
2aa49ce
Bugfix: Use unique autostart filenames on Linux for testnet/regtest (Luke Dashjr)
This commit is contained in:
commit
72dccfc29d
1 changed files with 4 additions and 1 deletions
|
@ -681,7 +681,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 a new issue