1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
bwrap_arguments=(
# no zombies
--die-with-parent
# network required for dependencies
--unshare-all
--share-net
# create environment for a properly running shell
--tmpfs /
--tmpfs /run
--tmpfs /tmp
--ro-bind /bin /bin
--ro-bind /sbin /sbin
--ro-bind /usr /usr
--ro-bind /etc /etc
--ro-bind /lib /lib
--ro-bind /lib64 /lib64
--bind $HOME/.simplex $HOME/.simplex
# systemd-resolve for dns
--ro-bind /run/systemd/resolve /run/systemd/resolve
)
bwrap "${bwrap_arguments[@]}" $HOME/.simplex/simplex-chat-ubuntu-22_04-x86-64