diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-11-24 09:50:57 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-11-24 09:51:02 +0100 |
commit | 72dccfc29dfc38e107c7c8de304f9894bfd954fb (patch) | |
tree | f6237843670d6970ffd470e233d03bdc682b8c98 /src/qt/guiutil.cpp | |
parent | b1fcdec6879048bb0ba4acf41dfbc379842c8afc (diff) | |
parent | 2aa49ce9fe618bda9bf70fd57b23fe4802f0aeff (diff) |
Merge pull request #7045
2aa49ce Bugfix: Use unique autostart filenames on Linux for testnet/regtest (Luke Dashjr)
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 845459b76a..6dce9370d7 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -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() |