diff --git a/electron-builder.config.cjs b/electron-builder.config.cjs index 35cc31946..4baba1d5c 100644 --- a/electron-builder.config.cjs +++ b/electron-builder.config.cjs @@ -104,6 +104,10 @@ const config = { confinement: "classic", allowNativeWayland: true, artifactName: "${name}_${version}_${arch}.${ext}", + environment: { + XDG_CONFIG_HOME: "$XDG_CONFIG_HOME", + XDG_DATA_HOME: "$XDG_DATA_HOME", + }, }, publish: { provider: "generic", diff --git a/emain/platform.ts b/emain/platform.ts index b25672398..474ff1ed4 100644 --- a/emain/platform.ts +++ b/emain/platform.ts @@ -232,8 +232,6 @@ ipcMain.on("get-config-dir", (event) => { event.returnValue = getWaveConfigDir(); }); -correctSnapXdgVars(); - export { getElectronAppBasePath, getElectronAppUnpackedBasePath,