fix(desktop): few WSL bugs (#31095)

This commit is contained in:
Filip
2026-06-08 02:05:54 +00:00
committed by GitHub
parent b1d14acc35
commit 65a3f7f749
13 changed files with 231 additions and 50 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import Store from "electron-store"
import { app } from "electron"
import electron from "electron"
import { SETTINGS_STORE } from "./constants"
import { SETTINGS_STORE } from "./store-keys"
const cache = new Map<string, Store>()
@@ -14,7 +14,7 @@ export function getStore(name = SETTINGS_STORE) {
if (cached) return cached
const next = new Store({
name,
cwd: app.getPath("userData"),
cwd: electron.app.getPath("userData"),
fileExtension: "",
accessPropertiesByDotNotation: false,
})