From fbe0df1cbffe6474bbeeb0fe059448cb3ba19446 Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Tue, 1 Feb 2022 20:46:32 +0000 Subject: [PATCH] Set the appData path manually so running in test environment uses same appdata --- src/main/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index c3071d66..2db1f6a9 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1,8 +1,12 @@ require('v8-compile-cache'); +import {app, components, ipcMain} from 'electron'; +import {join} from 'path'; +app.setPath('userData', join(app.getPath('appData'), 'Cider')); + + // Analytics for debugging fun yeah. import {init as Sentry} from '@sentry/electron'; -import {app, components, ipcMain} from 'electron'; import {Store} from "./base/store"; import {AppEvents} from "./base/app"; import {Plugins} from "./base/plugins";