| 586 | // https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html |
| 587 | |
| 588 | fs::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 | |
| 597 | fs::path static GetAutostartFilePath() |
| 598 | { |
no test coverage detected