nsjail \
--env HOME=/fakehome \
--env UID=1000 \
--env DISPLAY \
--env DBUS_SESSION_BUS_ADDRESS \
--env QT_DEBUG_PLUGINS=1 \
--tmpfs /fakehome \
--bindmount /tmp/.X11-unix/X0 \
--bindmount /run/user/1000/bus \
--bindmount "$HOME"/.Xauthority:/fakehome/.Xauthority \
--bindmount_ro /nix/store \
--bindmount_ro /bin/sh \
-- /nix/store/4v093kdjlqk3y6yz5cz2yq44398793kp-strace-5.10/bin/strace -f /nix/store/5nl8s0y30lblvd6288i6gfay8krjr3kr-zoom-5.4.57862.0110/bin/zoom
The section that seemed relevant:
[pid 7] connect(4, {sa_family=AF_UNIX, sun_path=@"/tmp/.X11-unix/X0"}, 20) = -1 ECONNREFUSED (Connection refused)
[pid 7] close(4) = 0
[pid 7] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 4
[pid 7] getsockopt(4, SOL_SOCKET, SO_SNDBUF, [212992], [4]) = 0
[pid 7] connect(4, {sa_family=AF_UNIX, sun_path="/tmp/.X11-unix/X0"}, 110) = 0
[pid 7] getpeername(4, {sa_family=AF_UNIX, sun_path="/tmp/.X11-unix/X0"}, [124->20]) = 0
[pid 7] uname({sysname="Linux", nodename="NSJAIL", ...}) = 0
[pid 7] access("/fakehome/.Xauthority", R_OK) = 0
[pid 7] openat(AT_FDCWD, "/fakehome/.Xauthority", O_RDONLY) = 5
[pid 7] fstat(5, {st_mode=S_IFREG|0600, st_size=49, ...}) = 0
[pid 7] close(5) = 0
[pid 7] brk(0x563e2cbd0000) = 0x563e2cbd0000
[pid 7] fcntl(4, F_GETFL) = 0x2 (flags O_RDWR)
[pid 7] fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 7] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 7] poll([{fd=4, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=4, revents=POLLOUT}])
[pid 7] writev(4, [{iov_base="l\0\v\0\0\0\0\0\0\0\0\0", iov_len=12}, {iov_base="", iov_len=0}], 2) = 12
[pid 7] recvfrom(4, 0x563e2cb9e7c0, 8, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
[pid 7] poll([{fd=4, events=POLLIN}], 1, -1) = 1 ([{fd=4, revents=POLLIN|POLLHUP}])
[pid 7] recvfrom(4, "\0\26\v\0\0\0\6\0", 8, 0, NULL, NULL) = 8
[pid 7] recvfrom(4, "No protocol specified\n\0\0", 24, 0, NULL, NULL) = 24
[pid 7] write(2, "No protocol specified\n", 22No protocol specified
) = 22
[pid 7] shutdown(4, SHUT_RDWR) = 0
[pid 7] close(4) = 0
[pid 7] write(2, "qt.qpa.xcb: could not connect to"..., 44qt.qpa.xcb: could not connect to display :0
) = 44
[pid 7] write(2, "qt.qpa.plugin: Could not load th"..., 91qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
) = 91
[pid 7] write(2, "This application failed to start"..., 298This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
) = 298
[pid 7] rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0