summaryrefslogtreecommitdiff
path: root/gpdl
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-17 09:47:21 +0000
commit47f6e76666cb3e17f0387291c543b320a353f93b (patch)
tree45a340bc9862c732dab397420d8696a00cd9c59f /gpdl
parent0b178d336c6369dbde17147de7055d379ded679e (diff)
downloadghostpdl-47f6e76666cb3e17f0387291c543b320a353f93b.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.
Diffstat (limited to 'gpdl')
-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";