Skip to content
Permalink
Browse files

Merge pull request #7045

2aa49ce Bugfix: Use unique autostart filenames on Linux for testnet/regtest (Luke Dashjr)
  • Loading branch information
laanwj committed Nov 24, 2015
2 parents b1fcdec + 2aa49ce commit 72dccfc29dfc38e107c7c8de304f9894bfd954fb
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/qt/guiutil.cpp
@@ -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()

0 comments on commit 72dccfc

Please sign in to comment.
You can’t perform that action at this time.