Access to SharedMemory

I’m debugging in issue of our application that occurs only with the recently released flatpak. Our application can run in Single Instance mode and we check if another instance is already running by creating an entry in shared memory Works on all kind of Distros, Windows, in Snap too but with the flatpak we seem to have a problem. Should we be able to use SharedMemory in Flatpaks? Do we need to enable something in the manifest?

1 Like

You need --device=shm for that, see You will also need to enforce the required flatpak version with --require-version=1.6.1 on finish-args.


Thanks, we were able to resolve this by fixing another issue, it looks like it had something to do with permission to the/tmp directory.