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

Function GetAutostartFilePath

src/qt/guiutil.cpp:597–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597fs::path static GetAutostartFilePath()
598{
599 std::string chain = gArgs.GetChainName();
600 if (chain == CBaseChainParams::MAIN)
601 return GetAutostartDir() / "bitcoin.desktop";
602 if (chain == CBaseChainParams::LIQUID1)
603 return GetAutostartDir() / "liquid.desktop";
604 return GetAutostartDir() / strprintf("elements-%s.desktop", chain);
605}
606
607bool GetStartOnSystemStartup()
608{

Callers 2

GetStartOnSystemStartupFunction · 0.85
SetStartOnSystemStartupFunction · 0.85

Calls 2

GetAutostartDirFunction · 0.85
GetChainNameMethod · 0.80

Tested by

no test coverage detected