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

This commit is contained in:
Gutyina Gergő
2025-01-05 17:58:06 +01:00
parent 1952e5278d
commit b5d4b848fd

View File

@@ -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");
}
}