Skip to content

Commit 2aa49ce

Browse files
committed
Bugfix: Use unique autostart filenames on Linux for testnet/regtest
1 parent 67d4cba commit 2aa49ce

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
@@ -354,7 +354,10 @@ boost::filesystem::path static GetAutostartDir()
354354

355355
boost::filesystem::path static GetAutostartFilePath()
356356
{
357-
return GetAutostartDir() / "bitcoin.desktop";
357+
std::string chain = ChainNameFromCommandLine();
358+
if (chain == CBaseChainParams::MAIN)
359+
return GetAutostartDir() / "bitcoin.desktop";
360+
return GetAutostartDir() / strprintf("bitcoin-%s.lnk", chain);
358361
}
359362

360363
bool GetStartOnSystemStartup()

0 commit comments

Comments
 (0)