Skip to content

Instantly share code, notes, and snippets.

@sloonz
sloonz / sandbox.py
Last active February 28, 2026 08:50
Sandboxing wrapper script for bubblewrap ; see https://sloonz.github.io/posts/sandboxing-3/
#!/usr/bin/python
import argparse
import os
import shlex
import sys
import tempfile
import yaml
config = yaml.full_load(open(os.path.expanduser("~/.config/sandbox.yml")))