mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use correct working directory (OpenLensDev) on dev mode (#3709)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
c0398effc5
commit
f58898467d
@ -69,6 +69,8 @@ import { kubeApiRequest, shellApiRequest } from "./proxy-functions";
|
|||||||
const onCloseCleanup = disposer();
|
const onCloseCleanup = disposer();
|
||||||
const onQuitCleanup = disposer();
|
const onQuitCleanup = disposer();
|
||||||
|
|
||||||
|
const workingDir = path.join(app.getPath("appData"), appName);
|
||||||
|
|
||||||
SentryInit();
|
SentryInit();
|
||||||
app.setName(appName);
|
app.setName(appName);
|
||||||
|
|
||||||
@ -83,6 +85,8 @@ if (app.setAsDefaultProtocolClient("lens")) {
|
|||||||
if (process.env.CICD) {
|
if (process.env.CICD) {
|
||||||
app.setPath("appData", process.env.CICD);
|
app.setPath("appData", process.env.CICD);
|
||||||
app.setPath("userData", path.join(process.env.CICD, appName));
|
app.setPath("userData", path.join(process.env.CICD, appName));
|
||||||
|
} else {
|
||||||
|
app.setPath("userData", workingDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.LENS_DISABLE_GPU) {
|
if (process.env.LENS_DISABLE_GPU) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user