about summary refs log tree commit diff
path: root/pkgs/applications/graphics/drawio
diff options
context:
space:
mode:
authorAlex Martens <alex@thinglab.org>2023-02-27 15:51:41 -0800
committerAlex Martens <alex@thinglab.org>2023-02-27 15:51:41 -0800
commitd654c44d2f967247c219950158e7fc3cc36658e0 (patch)
treea70cdc5dc1f284f70228b21895ecfa1e134cb70f /pkgs/applications/graphics/drawio
parente5581418176f24bd67b73b1a1a40bb32ab12b3ae (diff)
drawio-headless: add --auto-display to prevent races
Diffstat (limited to 'pkgs/applications/graphics/drawio')
-rw-r--r--pkgs/applications/graphics/drawio/headless.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/drawio/headless.nix b/pkgs/applications/graphics/drawio/headless.nix
index c70511fa6528c..34959da67b46e 100644
--- a/pkgs/applications/graphics/drawio/headless.nix
+++ b/pkgs/applications/graphics/drawio/headless.nix
@@ -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; {