diff --git a/main/src/AppTray.ts b/main/src/AppTray.ts index 4d3f126e..e73e4d15 100644 --- a/main/src/AppTray.ts +++ b/main/src/AppTray.ts @@ -39,7 +39,7 @@ export class AppTray { } }, { - label: 'Open logs folder', + label: 'Open config folder', click: () => { shell.openPath(path.join(app.getPath('userData'), 'apt-data')) } diff --git a/main/src/host-files/ConfigStore.ts b/main/src/host-files/ConfigStore.ts index 427653d1..d30de79d 100644 --- a/main/src/host-files/ConfigStore.ts +++ b/main/src/host-files/ConfigStore.ts @@ -33,6 +33,7 @@ export class ConfigStore { this.isTmpFile = true } try { + await fs.mkdir(path.dirname(this.cfgPath), { recursive: true }) await fs.writeFile(this.cfgPath, contents) } catch { app.exit(1)