diff --git a/packages/electron-builder/src/targets/snap.ts b/packages/electron-builder/src/targets/snap.ts index c2dac293a46..be0880121f6 100644 --- a/packages/electron-builder/src/targets/snap.ts +++ b/packages/electron-builder/src/targets/snap.ts @@ -61,7 +61,7 @@ export default class SnapTarget extends Target { snap.apps = { [snap.name]: { - command: `desktop-launch $SNAP/${packager.executableName}`, + command: `env TMPDIR=$XDG_RUNTIME_DIR desktop-launch $SNAP/${packager.executableName}`, plugs: replaceDefault(options.plugs, ["home", "x11", "unity7", "browser-support", "network", "gsettings", "pulseaudio", "opengl"]) } } @@ -128,4 +128,4 @@ export default class SnapTarget extends Target { } packager.dispatchArtifactCreated(resultFile, this, arch) } -} \ No newline at end of file +}