bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

[Question] ro-bind a single file

Open ghost opened this issue 5 years ago • 2 comments

When opening a media file with a media player, is there a way to script bwrap to have the media player be blind to the entire filesystem except for that one single file?

The documentation doesn't seem to make it clear how to do that.

The naive solution to this problem would involve file copying which isn't good - huge latency and ssd wear & tear.

ghost avatar May 06 '20 21:05 ghost

--ro-bind path/to/file /where/to/mount/it

charmander avatar May 06 '20 21:05 charmander

While that certainly works you are probably better off using a solution like flatpak which handles dynamically adding files into the sandbox for you.

TingPing avatar May 06 '20 21:05 TingPing