| 582 | // https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html |
| 583 | |
| 584 | fs::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 | |
| 593 | fs::path static GetAutostartFilePath() |
| 594 | { |
no test coverage detected