Merge pull request #7045
2aa49ce
Bugfix: Use unique autostart filenames on Linux for testnet/regtest (Luke Dashjr)
This commit is contained in:
commit
72dccfc29d
|
@ -681,7 +681,10 @@ boost::filesystem::path static GetAutostartDir()
|
||||||
|
|
||||||
boost::filesystem::path static GetAutostartFilePath()
|
boost::filesystem::path static GetAutostartFilePath()
|
||||||
{
|
{
|
||||||
|
std::string chain = ChainNameFromCommandLine();
|
||||||
|
if (chain == CBaseChainParams::MAIN)
|
||||||
return GetAutostartDir() / "bitcoin.desktop";
|
return GetAutostartDir() / "bitcoin.desktop";
|
||||||
|
return GetAutostartDir() / strprintf("bitcoin-%s.lnk", chain);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GetStartOnSystemStartup()
|
bool GetStartOnSystemStartup()
|
||||||
|
|
Loading…
Reference in New Issue