mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix sessionData app path
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
f63ce7b8b1
commit
b1162987a5
@ -11,6 +11,7 @@ export const pathNames: PathName[] = [
|
||||
"home",
|
||||
"appData",
|
||||
"userData",
|
||||
"sessionData",
|
||||
"temp",
|
||||
"exe",
|
||||
"module",
|
||||
|
||||
@ -35,7 +35,7 @@ describe("app-paths", () => {
|
||||
temp: "/some-temp",
|
||||
videos: "/some-videos",
|
||||
userData: "/some-irrelevant-user-data",
|
||||
sessionData: "/some-irrelevant-session-data",
|
||||
sessionData: "/some-irrelevant-user-data", // By default this points to userData
|
||||
};
|
||||
|
||||
builder.beforeApplicationStart(({ mainDi }) => {
|
||||
@ -73,7 +73,6 @@ describe("app-paths", () => {
|
||||
expect(actual).toEqual({
|
||||
currentApp: "/some-current-app",
|
||||
appData: "/some-app-data",
|
||||
cache: "/some-cache",
|
||||
crashDumps: "/some-crash-dumps",
|
||||
desktop: "/some-desktop",
|
||||
documents: "/some-documents",
|
||||
@ -88,6 +87,7 @@ describe("app-paths", () => {
|
||||
temp: "/some-temp",
|
||||
videos: "/some-videos",
|
||||
userData: "/some-app-data/some-product-name",
|
||||
sessionData: "/some-app-data/some-product-name",
|
||||
});
|
||||
});
|
||||
|
||||
@ -97,7 +97,6 @@ describe("app-paths", () => {
|
||||
expect(actual).toEqual({
|
||||
currentApp: "/some-current-app",
|
||||
appData: "/some-app-data",
|
||||
cache: "/some-cache",
|
||||
crashDumps: "/some-crash-dumps",
|
||||
desktop: "/some-desktop",
|
||||
documents: "/some-documents",
|
||||
@ -112,6 +111,7 @@ describe("app-paths", () => {
|
||||
temp: "/some-temp",
|
||||
videos: "/some-videos",
|
||||
userData: "/some-app-data/some-product-name",
|
||||
sessionData: "/some-app-data/some-product-name",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -34,6 +34,7 @@ const setupAppPathsInjectable = getInjectable({
|
||||
const appDataPath = getElectronAppPath("appData");
|
||||
|
||||
setElectronAppPath("userData", joinPaths(appDataPath, appName));
|
||||
setElectronAppPath("sessionData", getElectronAppPath("userData"));
|
||||
|
||||
const appPaths = pipeline(
|
||||
pathNames,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user