Blame SOURCES/efax-0.9-viewcmd.patch

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