Skip to content

Commit 72dccfc

Browse files
committed
Merge pull request #7045
2aa49ce Bugfix: Use unique autostart filenames on Linux for testnet/regtest (Luke Dashjr)
2 parents b1fcdec + 2aa49ce commit 72dccfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/qt/guiutil.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,10 @@ boost::filesystem::path static GetAutostartDir()
681681

682682
boost::filesystem::path static GetAutostartFilePath()
683683
{
684-
return GetAutostartDir() / "bitcoin.desktop";
684+
std::string chain = ChainNameFromCommandLine();
685+
if (chain == CBaseChainParams::MAIN)
686+
return GetAutostartDir() / "bitcoin.desktop";
687+
return GetAutostartDir() / strprintf("bitcoin-%s.lnk", chain);
685688
}
686689

687690
bool GetStartOnSystemStartup()

0 commit comments

Comments
 (0)