Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

[auth] Fix ~/.cache being deleted on linux

Gutyina Gergőb5d4b848fd13
diff --git a/auth/lib/utils/directory_utils.dart b/auth/lib/utils/directory_utils.dart
index ae8b8ededf..e5753a49c2 100644
--- a/auth/lib/utils/directory_utils.dart
+++ b/auth/lib/utils/directory_utils.dart
@@ -27,9 +27,9 @@ class DirectoryUtils {
Directory? directory;
if (Platform.isLinux) {
try {
- return cacheHome;
+ return await getApplicationCacheDirectory();
} catch (e) {
- logger.warning("Failed to get cacheHome: $e");
+ logger.warning("Failed to get application cache directory: $e");
}
}