From f58898467dde396b22a21b0b6964962ef6936242 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Wed, 1 Sep 2021 16:32:33 +0300 Subject: [PATCH] Use correct working directory (OpenLensDev) on dev mode (#3709) 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) {