CBL-Mariner/SPECS-EXTENDED/efax/efax-0.9-viewcmd.patch

20 строки
765 B
Diff

--- efax-0.9/fax.orig 2005-10-10 11:05:57.000000000 +0200
+++ efax-0.9/fax 2005-10-10 11:08:01.000000000 +0200
@@ -60,9 +60,13 @@
# The command to view a Portable Gray Map (PGM) image from the
# standard input. Typically "xv -" or "xloadimage stdin".
-VIEWCMD="xloadimage stdin" # best
-# VIEWCMD="pnmtoxwd | xwud" # slower alternative
-# VIEWCMD="xv -" # much slower alternative
+VIEWCMD="pnmtoxwd | xwud"
+if [ -x /usr/bin/display ] ; then
+ VIEWCMD="display -"
+elif [ -x /usr/bin/xloadimage -o -x /usr/X11R6/bin/xloadimage ] ; then
+ VIEWCMD="xloadimage stdin" # best
+fi
+# VIEWCMD="xv -" # much slower alternative
# The name of the Ghostscript executable including full path if
# necessary. Only required if faxing Postscript files.