From e1139bfba736cf7680a13afa37f009130c016e94 Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Sun, 27 Aug 2023 12:24:22 +0530 Subject: [PATCH] GetLocalAppDataPath: Use XDG_CONFIG_HOME. --- internal/platform/implementation/linux/device_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/platform/implementation/linux/device_info.cc b/internal/platform/implementation/linux/device_info.cc index b5ed037e..d3d1c950 100644 --- a/internal/platform/implementation/linux/device_info.cc +++ b/internal/platform/implementation/linux/device_info.cc @@ -108,7 +108,7 @@ std::optional DeviceInfo::GetDownloadPath() const { } std::optional DeviceInfo::GetLocalAppDataPath() const { - char *dir = getenv("XDG_STATE_HOME"); + char *dir = getenv("XDG_CONFIG_HOME"); if (dir == NULL) { return std::filesystem::path("/tmp"); }