From: Bernhard R. Link Date: Sat, 29 May 2010 14:19:16 +0200 Subject: Add -P- in safer mode. Without -P- gs will look in the currect directory for postscript libraries first, so disable that when in safer mode. --- doc/gv.texi | 4 +++- src/Ghostview.c | 1 + 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/doc/gv.texi b/doc/gv.texi index b4cf127..211f983 100644 --- a/doc/gv.texi +++ b/doc/gv.texi @@ -216,7 +216,9 @@ usefull for viewing encrypted PDF files. @item --presentation Is actually a shortcut for @code{--fullscreen --noresize --scale=-1000 --widgetless}. @item --safer, --nosafer -Whether to start ghostscript with the @code{-dSAFER} option. +Whether to start ghostscript in safer mode +(that includes he @code{-dSAFER} option or the @code{-dDELAYSAFER} +mode where appropriate) and the @code{-P-} option. @item --spartan This is a shortcut for @code{--style=gv_spartan.dat}. @item address@hidden diff --git a/src/Ghostview.c b/src/Ghostview.c index 572794b..df1b56a 100644 --- a/src/Ghostview.c +++ b/src/Ghostview.c @@ -1444,6 +1444,7 @@ StartInterpreter(w) if (gvw->ghostview.quiet) argv[argc++] = "-dQUIET"; if (gvw->ghostview.safer) { + argv[argc++] = "-P-"; argv[argc++] = "-dSAFER"; # ifdef ALLOW_PDF /* The file created by pdf2dsc opens the original -- 1.5.6.5