drawio-headless: add --auto-display to prevent races

This commit is contained in:
Alex Martens 2023-02-27 15:51:41 -08:00
parent e558141817
commit d654c44d2f

View file

@ -21,7 +21,7 @@ writeTextFile {
# Drawio needs to run in a virtual X session, because Electron # Drawio needs to run in a virtual X session, because Electron
# refuses to work and dies with an unhelpful error message otherwise: # refuses to work and dies with an unhelpful error message otherwise:
# "The futex facility returned an unexpected error code." # "The futex facility returned an unexpected error code."
XDG_CONFIG_HOME="$tmpdir" ${xvfb-run}/bin/xvfb-run ${drawio}/bin/drawio $@ XDG_CONFIG_HOME="$tmpdir" ${xvfb-run}/bin/xvfb-run --auto-display ${drawio}/bin/drawio $@
''; '';
meta = with lib; { meta = with lib; {