From 24f6c7944574dfcc7ee29317994ef09a119c2ccc Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Wed, 23 Aug 2023 17:47:27 +0530 Subject: [PATCH] Use XDG_RUNTIME_PATH for GetTemporaryPath --- internal/platform/implementation/linux/device_info.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/platform/implementation/linux/device_info.cc b/internal/platform/implementation/linux/device_info.cc index ef86ca67..83a63ab1 100644 --- a/internal/platform/implementation/linux/device_info.cc +++ b/internal/platform/implementation/linux/device_info.cc @@ -48,7 +48,7 @@ std::optional DeviceInfo::GetOsDeviceName() const { api::DeviceInfo::DeviceType DeviceInfo::GetDeviceType() const { try { - std::string chasis = hostname_proxy_->getProperty("PrettyHostname") + std::string chasis = hostname_proxy_->getProperty("Chasis") .onInterface(HOSTNAME_INTERFACE); api::DeviceInfo::DeviceType device = api::DeviceInfo::DeviceType::kUnknown; if (chasis == "phone") { @@ -103,7 +103,7 @@ std::optional DeviceInfo::GetLocalAppDataPath() const { } std::optional DeviceInfo::GetTemporaryPath() const { - char *dir = getenv("XDG_CACHE_HOME"); + char *dir = getenv("XDG_RUNTIME_PATH"); if (dir == NULL) { return std::filesystem::path("/tmp"); }