Electron v2 finally moved to a more recent version of Chromium (and gtk3), but I’m having a surprisingly hard time getting our snap to run on Ubuntu 18.04 (it runs fine on 16.04).
What seems to be happening is that the current user id cannot be found, which then results in a snazzy broken syscall:
Is there any indication why it is trying to create that path? If you have code that needs to look up files relative to $XDG_RUNTIME_DIR, it should be using that environment variable directly.
If you’re using the desktop-launch script from snapcraft-desktop-helpers (e.g. in the form of the desktop-gtk3 cloud part), this should be taken care of for you.
If you aren’t using that script, perhaps just reuse it’s logic:
This is definitely something that we need to fix, but the above workaround should be safe even after the referenced bug is addressed.