Skip to content

Commit

Permalink
chore: open app data should lead user to jan root (janhq#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Nov 28, 2023
1 parent d6807f5 commit 9a52135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electron/handlers/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

/**
Expand Down

0 comments on commit 9a52135

Please sign in to comment.