mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
GetLocalAppDataPath: Use XDG_CONFIG_HOME.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user