π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
That's why cache fails
Manav Rathi994ca4b6a378
diff --git a/desktop/src/main.ts b/desktop/src/main.tsindex 42c5ab7329..4cd25881f0 100644--- a/desktop/src/main.ts+++ b/desktop/src/main.ts@@ -174,7 +174,7 @@ const createMainWindow = async () => {if (isDev) window.webContents.openDevTools();window.webContents.on("render-process-gone", (_, details) => {- log.error(`render-process-gone: ${details}`);+ log.error(`render-process-gone: ${details.reason}`);window.webContents.reload();});@@ -302,17 +302,19 @@ const setupTrayItem = (mainWindow: BrowserWindow) => {* versions.*/const deleteLegacyDiskCacheDirIfExists = async () => {- // The existing code was passing "cache" as a parameter to getPath. This is- // incorrect if we go by the types - "cache" is not a valid value for the- // parameter to `app.getPath`.+ // The existing code was passing "cache" as a parameter to getPath.//- // It might be an issue in the types, since at runtime it seems to work. For- // example, on macOS I get `~/Library/Caches`.+ // However, "cache" is not a valid parameter to getPath. It works! (for+ // example, on macOS I get `~/Library/Caches`), but it is intentionally not+ // documented as part of the public API:+ //+ // - docs: remove "cache" from app.getPath+ // https://github.com/electron/electron/pull/33509//// Irrespective, we replicate the original behaviour so that we get back the- // same path that the old got was getting.+ // same path that the old code was getting.//- // @ts-expect-error+ // @ts-expect-error "cache" works but is not part of the public API.const cacheDir = path.join(app.getPath("cache"), "ente");if (existsSync(cacheDir)) {log.info(`Removing legacy disk cache from ${cacheDir}`);