chore: open app data should lead user to jan root (#749)

This commit is contained in:
Louis 2023-11-28 15:32:04 +07:00 committed by GitHub
parent d6807f50c4
commit 9a52135b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,8 @@ export function handleAppIPCs() {
* @param _event - The IPC event object. * @param _event - The IPC event object.
*/ */
ipcMain.handle("openAppDirectory", async (_event) => { ipcMain.handle("openAppDirectory", async (_event) => {
shell.openPath(app.getPath("userData")); const userSpacePath = join(app.getPath('home'), 'jan')
shell.openPath(userSpacePath);
}); });
/** /**