GetLocalAppDataPath: Use XDG_CONFIG_HOME.

This commit is contained in:
Vibhav Pant
2023-08-27 12:24:22 +05:30
parent 96ae9cb76f
commit 8b3c1c2b27
@@ -108,7 +108,7 @@ std::optional<std::filesystem::path> DeviceInfo::GetDownloadPath() const {
}
std::optional<std::filesystem::path> DeviceInfo::GetLocalAppDataPath() const {
char *dir = getenv("XDG_STATE_HOME");
char *dir = getenv("XDG_CONFIG_HOME");
if (dir == NULL) {
return std::filesystem::path("/tmp");
}