mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 07:37:54 +00:00
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()
|
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 New Issue
Block a user