From 1b004cf76acad6601ad4c93fd75b214b6d7d6917 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 3 Mar 2021 11:00:19 +0100 Subject: [PATCH] Add chrome argument --no-sandbox for pdf creation --- bin/mdshow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mdshow b/bin/mdshow index d81adce..23bde43 100755 --- a/bin/mdshow +++ b/bin/mdshow @@ -196,7 +196,7 @@ pdf: $(basename $(SLIDES)).pdf $(basename $(SLIDES)).pdf: serving build pdf_size="$$($(MDSHOW_CONFIG)/reveal.js/node_modules/node-jq/bin/jq -r '.pdf_size' < $(BUILD_DIR)/config.json)"; \ pdf_delay="$$($(MDSHOW_CONFIG)/reveal.js/node_modules/node-jq/bin/jq -r '.pdf_delay' < $(BUILD_DIR)/config.json)"; \ - $(MDSHOW_CONFIG)/reveal.js/node_modules/.bin/decktape -p $${pdf_delay} -s $${pdf_size} http://localhost:$(PORT)/ $@ || \ + $(MDSHOW_CONFIG)/reveal.js/node_modules/.bin/decktape -p $${pdf_delay} -s $${pdf_size} --chrome-arg="--no-sandbox" http://localhost:$(PORT)/ $@ || \ echo "Failed to create $@. Is the mdshow server running? mdshow serve" # {{{1 serve -- GitLab