programs: sandbox: use --dev-bind-try for root paths; fixes mpv on moby

This commit is contained in:
Colin 2024-01-23 12:18:32 +00:00
parent 38fd171713
commit cce03a5dc8

View File

@ -144,7 +144,9 @@ firejailExec() {
## BUBBLEWRAP BACKEND
bwrapIngestRootPath() {
bwrapFlags+=("--dev-bind" "$1" "$1")
# N.B.: use --dev-bind-try instead of --dev-bind for platform-specific paths like /run/opengl-driver-32
# which don't exist on aarch64, as the -try variant will gracefully fail (i.e. not bind it).
bwrapFlags+=("--dev-bind-try" "$1" "$1")
}
bwrapIngestHomePath() {
bwrapFlags+=("--dev-bind" "$HOME/$1" "$HOME/$1")