| 612 | // http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html |
| 613 | |
| 614 | fs::path static GetAutostartDir() |
| 615 | { |
| 616 | char* pszConfigHome = getenv("XDG_CONFIG_HOME"); |
| 617 | if (pszConfigHome) return fs::path(pszConfigHome) / "autostart"; |
| 618 | char* pszHome = getenv("HOME"); |
| 619 | if (pszHome) return fs::path(pszHome) / ".config" / "autostart"; |
| 620 | return fs::path(); |
| 621 | } |
| 622 | |
| 623 | fs::path static GetAutostartFilePath() |
| 624 | { |
no outgoing calls
no test coverage detected