Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Keep a list of appdata paths that we know about

Manav Rathi4dae5616af33
diff --git a/src/utils/ipcComms.ts b/src/utils/ipcComms.ts
index d17e7e3564..b4c3a80c2a 100644
--- a/src/utils/ipcComms.ts
+++ b/src/utils/ipcComms.ts
@@ -113,6 +113,14 @@ export default function setupIpcComs(
});
ipcMain.handle('get-path', (_, message) => {
+ // By default, these paths are at the following locations:
+ //
+ // * macOS: `~/Library/Application Support/ente`
+ // * Linux: `~/.config/ente`
+ // * Windows: `%APPDATA%`, e.g. `C:\Users\<username>\AppData\Local\ente`
+ // * Windows: C:\Users\<you>\AppData\Local\<Your App Name>
+ //
+ // https://www.electronjs.org/docs/latest/api/app
return app.getPath(message);
});