It looks like setting TMPDIR to $XDG_RUNTIME_DIR in snapcraft.yaml's environment section for the app should do the trick (thanks Trevinho for the hint!).
It looks like setting TMPDIR to $XDG_RUNTIME_DIR in snapcraft.yaml's environment section for the app should do the trick (thanks Trevinho for the hint!).