Skip to content

Commit 2ab769d

Browse files
geekgonecrazydevelar
authored andcommitted
fix(snap): fix appindicator icons with snap build (#1453)
Close #1452
1 parent a053229 commit 2ab769d

File tree

1 file changed

+2
-2
lines changed
  • packages/electron-builder/src/targets

1 file changed

+2
-2
lines changed

packages/electron-builder/src/targets/snap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class SnapTarget extends Target {
6161

6262
snap.apps = {
6363
[snap.name]: {
64-
command: `desktop-launch $SNAP/${packager.executableName}`,
64+
command: `env TMPDIR=$XDG_RUNTIME_DIR desktop-launch $SNAP/${packager.executableName}`,
6565
plugs: replaceDefault(options.plugs, ["home", "x11", "unity7", "browser-support", "network", "gsettings", "pulseaudio", "opengl"])
6666
}
6767
}
@@ -128,4 +128,4 @@ export default class SnapTarget extends Target {
128128
}
129129
packager.dispatchArtifactCreated(resultFile, this, arch)
130130
}
131-
}
131+
}

0 commit comments

Comments
 (0)