summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-03-16 08:03:35 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-03-18 14:59:54 +0000
commitc432d534400660aebc273dc2a90c2a4702ad3066 (patch)
tree94544d2303e98412bf6dbf26df4ca2dcb8d44817
parent7c72c8dc8b5d24c57ec312ba7da0ae1cc19d99ec (diff)
downloadghostpdl-c432d534400660aebc273dc2a90c2a4702ad3066.tar.gz
Bug 705075: gpdl - Avoid unintended side effect of -dNODISPLAY
We need to initialise Ghostscript with the nullpage device when calling it via gpdl (so we can later replace the nulldevice with the "real" output device). Using the "shortcut" of "-dNODISPLAY" to install the nulldevice as the initial device ends up disabling the interactive prompt between pages. This just changes things specify "-sDEVICE=nullpage" explicitly, avoiding that problem.
-rw-r--r--gpdl/psitop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpdl/psitop.c b/gpdl/psitop.c
index 590f12627..7f6a0e3c6 100644
--- a/gpdl/psitop.c
+++ b/gpdl/psitop.c
@@ -331,7 +331,7 @@ ps_impl_allocate_interp_instance(pl_interp_implementation_t *impl, gs_memory_t *
/* We start gs with the nullpage device, and replace the device with the
* set_device call from the language independent code.
*/
- gsargs[nargs++] = "-dNODISPLAY";
+ gsargs[nargs++] = "-sDEVICE=nullpage";
/* As we're "printer targetted, use a jobserver */
gsargs[nargs++] = "-dJOBSERVER";