diff options
| author | Luke Dashjr <[email protected]> | 2015-11-17 20:29:42 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2015-11-17 20:31:00 +0000 |
| commit | 2aa49ce9fe618bda9bf70fd57b23fe4802f0aeff (patch) | |
| tree | 4e821e3b10d6a5f1b3e1db74595f776d04111aee /src/qt/guiutil.cpp | |
| parent | Move GetStartOnSystemStartup and SetStartOnSystemStartup to GUI code (diff) | |
| download | discoin-2aa49ce9fe618bda9bf70fd57b23fe4802f0aeff.tar.xz discoin-2aa49ce9fe618bda9bf70fd57b23fe4802f0aeff.zip | |
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 23e657677..9600a54c4 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() |