On Thu, May 19, 2022 at 10:25:16AM +0300, Ville Ilvonen wrote: > On Wed, May 18, 2022 at 4:11 PM Alyssa Ross wrote: > > > Actually, this looking more closely at the stack trace, this is more > > likely to be it not having a writeable XDG_CONFIG_HOME or HOME > > directory. So you could try setting those to temporary directories in > > the build. Something like > > > > export XDG_CONFIG_HOME="$(mktemp -d)" > > I think it was a good idea to test but unfortunately it did not work out: > > '' > export XDG_CONFIG_HOME="$(mktemp -d)" > echo $XDG_CONFIG_HOME > drawio in.drawio --export --output test.svg > jekyll build --disable-disk-cache -s $src -d $out > '' I was just looking at the draw.io packaging in Nixpkgs, and I discovered that there's already code in there for running headless draw.io! [1] But it's not exposed outside of this pandoc filter package. I'm going to see if it works, and if it does I'll see if we can pull it out to the top level, as a drawio-headless package or something. [1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/pandoc-drawio-filter/default.nix