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

Function GetAutostartDir

src/qt/guiutil.cpp:588–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

GetAutostartFilePathFunction · 0.85
SetStartOnSystemStartupFunction · 0.85

Calls 1

pathClass · 0.85

Tested by

no test coverage detected