Skip to content

Commit

Permalink
Merge pull request #7045
Browse files Browse the repository at this point in the history
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 72dccfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 72dccfc

Please sign in to comment.