diff --git a/app/com/gitpitch/services/PrintService.java b/app/com/gitpitch/services/PrintService.java index f1341aa..d10c502 100644 --- a/app/com/gitpitch/services/PrintService.java +++ b/app/com/gitpitch/services/PrintService.java @@ -167,7 +167,8 @@ public class PrintService { hostname()); String deckTape = diskService.decktape(); - String[] cmd = { deckTape, REVEAL, slideshowUrl, filePath}; + String[] cmd = + { deckTape, REVEAL, slideshowUrl, filePath, decktapeArgs()}; int generated = shellService.exec(GIT_PDF, pp, branchPath, cmd); if (generated != STATUS_OK) { @@ -185,6 +186,11 @@ public class PrintService { return runtime.config("gitpitch.hostname"); } + private String decktapeArgs() { + String args = runtime.config("gitpitch.decktape.args"); + return (args != null) ? args : ""; + } + private static final String REVEAL = "reveal"; private static final String PITCHME_PDF = "PITCHME.pdf"; private static final String PRINT_NO_FRAGS = "false"; diff --git a/conf/application.conf b/conf/application.conf index 01299c0..b3d0328 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -373,11 +373,16 @@ gitpitch { home = "/tmp/gitpitch/swap" } - # - # Absolute path to decktape executable. - # decktape { + # + # Absolute path to decktape executable. + # home = "/usr/local/bin/decktape" + # + # Optional args passed to decktape executable. + # For example, to workaround Decktape #103 related to + # Puppeteer Issue #290, uncomment and use the following: + # args = "--no-sandbox" } offline {