From 8671e30e99473857f658b49ac6c3725b18e8821e Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Wed, 1 Sep 2021 12:32:10 +0300 Subject: [PATCH] Use correct working directory (OpenLensDev) on dev mode Signed-off-by: Lauri Nevala --- src/main/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/index.ts b/src/main/index.ts index ce3cafd926..3dd478fc76 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -69,6 +69,8 @@ import { kubeApiRequest, shellApiRequest } from "./proxy-functions"; const onCloseCleanup = disposer(); const onQuitCleanup = disposer(); +const workingDir = path.join(app.getPath("appData"), appName); + SentryInit(); app.setName(appName); @@ -83,6 +85,8 @@ if (app.setAsDefaultProtocolClient("lens")) { if (process.env.CICD) { app.setPath("appData", process.env.CICD); app.setPath("userData", path.join(process.env.CICD, appName)); +} else { + app.setPath("userData", workingDir); } if (process.env.LENS_DISABLE_GPU) {