[fix] save log files into XDG_CACHE_HOME/CrossDesk/logs for Linux platform

This commit is contained in:
dijunkun
2025-07-25 18:11:40 +08:00
parent 5d704edbc8
commit 4c898c5f07

View File

@@ -30,7 +30,7 @@ std::filesystem::path PathManager::GetLogPath() {
#elif __APPLE__
return GetHome() + "/Library/Logs/" + app_name_;
#else
return GetCachePath() / "logs";
return GetCachePath() / app_name_ / "logs";
#endif
}