? listb.txt
? backend/.deps
? comics/.deps
? comics/Makefile
? comics/Makefile.in
? cut-n-paste/recent-files/.deps
? cut-n-paste/toolbar-editor/.deps
? cut-n-paste/zoom-control/.deps
? djvu/.deps
? dvi/.deps
? dvi/mdvi-lib/.deps
? lib/.deps
? pdf/.deps
? pixbuf/.deps
? po/stamp-it
? properties/.deps
? ps/.deps
? shell/.deps
? thumbnailer/.deps
? tiff/.deps
Index: ps/gsdefaults.c
===================================================================
RCS file: /cvs/gnome/evince/ps/gsdefaults.c,v
retrieving revision 1.5
diff -u -p -r1.5 gsdefaults.c
--- ps/gsdefaults.c	23 Mar 2005 11:07:31 -0000	1.5
+++ ps/gsdefaults.c	12 Feb 2006 20:57:26 -0000
@@ -57,7 +57,7 @@ gtk_gs_defaults_get_paper_sizes()
 const gchar *
 gtk_gs_defaults_get_interpreter_cmd()
 {
-    return GS_PATH;
+  return g_find_program_in_path("gs");
 }
 
 const gchar *
Index: ps/ps-document.c
===================================================================
RCS file: /cvs/gnome/evince/ps/ps-document.c,v
retrieving revision 1.60
diff -u -p -r1.60 ps-document.c
--- ps/ps-document.c	22 Sep 2005 15:23:15 -0000	1.60
+++ ps/ps-document.c	12 Feb 2006 20:57:26 -0000
@@ -1062,20 +1062,33 @@ ps_document_load (EvDocument  *document,
 	filename = g_filename_from_uri (uri, NULL, error);
 	if (!filename)
 		return FALSE;
-
-	result = document_load (PS_DOCUMENT (document), filename);
-	if (!result) {
-		gchar *filename_dsp;
-
-		filename_dsp = g_filename_display_name (filename);
-
-		g_set_error (error, G_FILE_ERROR,
-			     G_FILE_ERROR_FAILED,
-			     _("Failed to load document '%s'"),
-			     filename_dsp);
-
-		g_free (filename_dsp);
-	}
+	
+	if (!gtk_gs_defaults_get_interpreter_cmd())
+	  {
+	    g_set_error(error,
+			G_FILE_ERROR,
+			G_FILE_ERROR_NOENT,
+			_("The gs command is not found.\nGhostscript must be installed in order to read %s"),
+			filename);
+	    result = FALSE;
+			
+	  }
+	else
+	  {
+	    result = document_load (PS_DOCUMENT (document), filename);
+	    if (!result) {
+	      gchar *filename_dsp;
+	      
+	      filename_dsp = g_filename_display_name (filename);
+	      
+	      g_set_error (error, G_FILE_ERROR,
+			   G_FILE_ERROR_FAILED,
+			   _("Failed to load document '%s'"),
+			   filename_dsp);
+	      
+	      g_free (filename_dsp);
+	    }
+	  }
 
 	g_free (filename);
 
