On Tue, 9 Apr 2024 at 20:50, Damjan Georgievski <gdamjan@gmail.com> wrote:
But you're passing /tmp/.X11-unix/ and setting DISPLAY, so you might
only want to run X apps?
In which case you don't need startx.

--
damjan

Thank you, this was indeed what I was missing. In hindsight, I should have realised this from the wording of the chroot wiki article ("you can start graphical applications from the chroot environment"), but I misread that line entirely.