doas apk add bubblewrap firefox
----------------------------------------------
nano bwfirefox
exec bwrap \
--ro-bind /usr/share /usr/share/ \
--ro-bind /usr/lib /usr/lib \
--ro-bind /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1 \
--ro-bind /lib/libz.so.1 /lib/libz.so.1 \
--ro-bind /lib/libmount.so.1 /lib/libmount.so.1 \
--ro-bind /lib/libuuid.so.1 /lib/libuuid.so.1 \
--ro-bind /lib/libblkid.so.1 /lib/libblkid.so.1 \
--proc /proc \
--dev /dev \
--dev-bind /dev/snd /dev/snd \
--ro-bind /etc/resolv.conf /etc/resolv.conf \
--ro-bind /etc/gtk-3.0 /etc/gtk-3.0 \
--ro-bind /etc/fonts /etc/fonts \
--ro-bind /etc/pulse /etc/pulse \
--tmpfs /run \
--ro-bind /tmp/"$(id -u)"-runtime-dir/wayland-1 /tmp/"$(id -u)"-runtime-dir/wayland-1 \
--bind ~/.mozilla ~/.mozilla \
--bind ~/.cache/mozilla ~/.cache/mozilla \
--bind ~/Downloads ~/Downloads \
--chdir ~/ \
--unsetenv DBUS_SESSION_BUS_ADDRESS \
--setenv MOZ_ENABLE_WAYLAND 1 \
--unshare-user-try \
--unshare-pid \
--unshare-uts \
--unshare-cgroup-try \
--new-session \
/usr/lib/firefox/firefox
----------------------------------------------------------------------------------------------------
my XDG_RUNTIME_DIR=/tmp/"$(id -u)"-runtime-dir so ...
Comments
Post a Comment