Merge pull request #218747 from NixOS/backport-218714-to-release-22.11

[Backport release-22.11] drawio-headless: add --auto-display to prevent races
This commit is contained in:
Jacek Galowicz
2023-02-28 09:56:16 +01:00
committed by GitHub

View File

@@ -21,7 +21,7 @@ writeTextFile {
# Drawio needs to run in a virtual X session, because Electron
# refuses to work and dies with an unhelpful error message otherwise:
# "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; {