From 9a52135b1fcd059116a8ec2b10e02ce816029f24 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 28 Nov 2023 15:32:04 +0700 Subject: [PATCH] chore: open app data should lead user to jan root (#749) --- electron/handlers/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electron/handlers/app.ts b/electron/handlers/app.ts index 022e4d61a9..3738a79708 100644 --- a/electron/handlers/app.ts +++ b/electron/handlers/app.ts @@ -29,7 +29,8 @@ export function handleAppIPCs() { * @param _event - The IPC event object. */ ipcMain.handle("openAppDirectory", async (_event) => { - shell.openPath(app.getPath("userData")); + const userSpacePath = join(app.getPath('home'), 'jan') + shell.openPath(userSpacePath); }); /**