summaryrefslogtreecommitdiff
path: root/src/GsWidget.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2004-06-28 17:43:16 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2004-06-28 17:43:16 +0000
commit5f969cbc52a0778a3b30394bd77bdeff63159ffd (patch)
tree6dece1afa40342d25c7b9883ab29e8ec4f81b6c4 /src/GsWidget.cxx
parent3927a541cbbf8edc69ba28abd318ac76a2d2b42d (diff)
cleanups for Linux
cleanups for Linux
Diffstat (limited to 'src/GsWidget.cxx')
-rw-r--r--src/GsWidget.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx
index c781ea2..ec0a73d 100644
--- a/src/GsWidget.cxx
+++ b/src/GsWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: GsWidget.cxx,v 1.4 2004/06/25 18:14:05 hofmann Exp $"
+// "$Id: GsWidget.cxx,v 1.5 2004/06/28 19:43:16 hofmann Exp $"
//
// GsWidget routines.
//
@@ -152,7 +152,11 @@ int GsWidget::load(int fd) {
argv[5] = "-dNOPLATFONTS";
argv[6] = "-";
argv[7] = NULL;
- execvp(argv[0], argv);
+ execvp(argv[0], argv);
+ fprintf(stderr, "Could not exec gs (errno %d)\n", errno);
+ fprintf(stderr, "Please install ghostscript and make sure 'gs' "
+ "is in the PATH.\n");
+ exit(1);
} else {
gs_pid = pid;
page = 0;