diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2015-11-17 20:29:42 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2015-11-17 20:31:00 +0000 |
commit | 2aa49ce9fe618bda9bf70fd57b23fe4802f0aeff (patch) | |
tree | 4e821e3b10d6a5f1b3e1db74595f776d04111aee /src/qt/guiutil.cpp | |
parent | 67d4cbab461260cd51386a16a1a34bb9161e73a8 (diff) |
Bugfix: Use unique autostart filenames on Linux for testnet/regtest
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 23e6576772..9600a54c46 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() |