Snap interface for /dev/shm

you can bind mount a dir to ~/ and have your apps use the home interface to read/write to that:

$ mkdir /dev/shm/shared
$ mkdir ~/shmdir
$ sudo mount --bind /dev/shm/shared ~/shmdir
$ touch ~/shmdir/foo
$ ls /dev/shm/shared/
foo
$
2 Likes