Blame SOURCES/efax-0.9-viewcmd.patch

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