Skip to content

Commit

Permalink
Ensure EventStore is created in the appropriate userData directory (#433
Browse files Browse the repository at this point in the history
)
  • Loading branch information
t3chguy authored Nov 4, 2022
1 parent 43484b2 commit 2032f64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/seshat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ try {
}
}

const eventStorePath = path.join(app.getPath('userData'), 'EventStore');

let eventIndex: SeshatType | null = null;

const seshatDefaultPassphrase = "DEFAULT_PASSPHRASE";
Expand Down Expand Up @@ -80,6 +78,9 @@ const deleteContents = async (p: string): Promise<void> => {
ipcMain.on('seshat', async function(_ev: IpcMainEvent, payload): Promise<void> {
if (!global.mainWindow) return;

// We do this here to ensure we get the path after --profile has been resolved
const eventStorePath = path.join(app.getPath('userData'), 'EventStore');

const sendError = (id, e) => {
const error = {
message: e.message,
Expand Down

0 comments on commit 2032f64

Please sign in to comment.