MCPcopy Create free account
hub / github.com/ElementsProject/elements / StartupShortcutPath

Function StartupShortcutPath

src/qt/guiutil.cpp:512–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510
511#ifdef WIN32
512fs::path static StartupShortcutPath()
513{
514 std::string chain = gArgs.GetChainName();
515 if (chain == CBaseChainParams::MAIN)
516 return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin.lnk";
517 if (chain == CBaseChainParams::LIQUID1)
518 return GetSpecialFolderPath(CSIDL_STARTUP) / "Liquid.lnk";
519 if (chain == CBaseChainParams::TESTNET) // Remove this special case when CBaseChainParams::TESTNET = "testnet4"
520 return GetSpecialFolderPath(CSIDL_STARTUP) / "Bitcoin (testnet).lnk";
521 return GetSpecialFolderPath(CSIDL_STARTUP) / strprintf("Elements (%s).lnk", chain);
522}
523
524bool GetStartOnSystemStartup()
525{

Callers 2

GetStartOnSystemStartupFunction · 0.85
SetStartOnSystemStartupFunction · 0.85

Calls 2

GetSpecialFolderPathFunction · 0.85
GetChainNameMethod · 0.80

Tested by

no test coverage detected