MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / StartupShortcutPath

Function StartupShortcutPath

src/qt/guiutil.cpp:510–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508
509#ifdef WIN32
510fs::path static StartupShortcutPath()
511{
512 ChainType chain = gArgs.GetChainType();
513 if (chain == ChainType::MAIN)
514 return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin.lnk";
515 if (chain == ChainType::TESTNET) // Remove this special case when testnet CBaseChainParams::DataDir() is incremented to "testnet4"
516 return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin (testnet).lnk";
517 return GetSpecialFolderPath(CSIDL_STARTUP) / fs::u8path(strprintf("Bitcoin (%s).lnk", ChainTypeToString(chain)));
518}
519
520bool GetStartOnSystemStartup()
521{

Callers 2

GetStartOnSystemStartupFunction · 0.85
SetStartOnSystemStartupFunction · 0.85

Calls 4

GetSpecialFolderPathFunction · 0.85
u8pathFunction · 0.85
ChainTypeToStringFunction · 0.85
GetChainTypeMethod · 0.45

Tested by

no test coverage detected