You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
problems with /dev/shm when its a symlink to /run/shm #2136
MX uses sysvinit from debian stretch repo. The /dev/shm is a tmpfs, but its at /run/shm and /dev/shm is a link to /run/shm.
certain flatpaks have a problem with this arrangement. When booting the same system with systemd, /dev/shm is the mountpoint for the tmpfs and the flatpak has a memory error with incorrect permissions on /dev/shm
Steps to reproduce
use debian stretch with sysvinit (or just use MX linux in default sysvinit boot mode)
install the com.discordapp.Discord flatpak from flathub
run the flatpak as usual.
Note: other flatpaks run fine, things like abiword, kdenlive, and steam.
So, the problem is that discord uses --device=all, so it sees the host /dev, and that has the /dev/shm symlink. Its a bit unclear how to solve this in general. As a workaround, If this is a common arrangement we could just make a /run/shm directory in the sandbox.
Activity
alexlarsson commentedon Oct 1, 2018
So, the problem is that discord uses --device=all, so it sees the host /dev, and that has the /dev/shm symlink. Its a bit unclear how to solve this in general. As a workaround, If this is a common arrangement we could just make a /run/shm directory in the sandbox.
alexlarsson commentedon Oct 1, 2018
That would not fix the systemd case though. What exact permission error do you get in that case?
Don't expose host /dev/shm with --device=all (fixing debian problems)
alexlarsson commentedon Oct 1, 2018
Can someone verify that #2160 fixes this on debian?
Don't expose host /dev/shm with --device=all (fixing debian problems)