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

Function GetAutostartDir

src/qt/guiutil.cpp:584–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582// https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html
583
584fs::path static GetAutostartDir()
585{
586 char* pszConfigHome = getenv("XDG_CONFIG_HOME");
587 if (pszConfigHome) return fs::path(pszConfigHome) / "autostart";
588 char* pszHome = getenv("HOME");
589 if (pszHome) return fs::path(pszHome) / ".config" / "autostart";
590 return fs::path();
591}
592
593fs::path static GetAutostartFilePath()
594{

Callers 2

GetAutostartFilePathFunction · 0.85
SetStartOnSystemStartupFunction · 0.85

Calls 1

pathClass · 0.70

Tested by

no test coverage detected