Merge pull request #320 from ente-io/document-known-paths

Keep a list of appdata paths that we know about
This commit is contained in:
Manav Rathi 2024-02-19 19:05:17 +05:30 committed by GitHub
commit adcae7ad70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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