diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 23e65767721..9600a54c467 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -354,7 +354,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()