Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix XDG_*_DIR paths for snap installations #1697

Closed
wants to merge 13 commits into from
Closed
4 changes: 4 additions & 0 deletions electron-builder.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions emain/emain-wavesrv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ export function runWaveSrv(handleWSEvent: (evtMsg: WSEventType) => void): Promis
}
process.env[WSServerEndpointVarName] = startParams[1];
process.env[WebServerEndpointVarName] = startParams[2];
delete process.env.XDG_DATA_HOME;
delete process.env.XDG_CONFIG_HOME;
delete process.env.XDG_RUNTIME_DIR;
delete process.env.XDG_CACHE_HOME;
delete process.env.XDG_STATE_HOME;
WaveVersion = startParams[3];
WaveBuildTime = parseInt(startParams[4]);
waveSrvReadyResolve(true);
Expand Down
Loading