diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-11-24 09:50:57 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-11-24 09:51:02 +0100 |
| commit | 72dccfc29dfc38e107c7c8de304f9894bfd954fb (patch) | |
| tree | f6237843670d6970ffd470e233d03bdc682b8c98 /src/qt/guiutil.cpp | |
| parent | Merge pull request #7042 (diff) | |
| parent | Bugfix: Use unique autostart filenames on Linux for testnet/regtest (diff) | |
| download | discoin-72dccfc29dfc38e107c7c8de304f9894bfd954fb.tar.xz discoin-72dccfc29dfc38e107c7c8de304f9894bfd954fb.zip | |
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 845459b76..6dce9370d 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() |