From 1529ed4897ce8bb36d4b7bcc63e4836654092683 Mon Sep 17 00:00:00 2001 From: Kenneth G Raeburn Date: Fri, 19 Oct 1990 04:27:35 +0000 Subject: Use ZWGCPATH in message instead of explicit path. --- zwgc/standard_ports.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'zwgc/standard_ports.c') diff --git a/zwgc/standard_ports.c b/zwgc/standard_ports.c index 22a7166..02884da 100644 --- a/zwgc/standard_ports.c +++ b/zwgc/standard_ports.c @@ -31,6 +31,10 @@ static char rcsid_standard_ports_c[] = "$Id$"; #include "error.h" #include +#ifndef ZWGCPATH +#define ZWGCPATH "/usr/etc/zwgc" +#endif + extern string tty_filter(); extern char *X_driver(); @@ -275,12 +279,13 @@ void init_standard_ports(pargc, argv) var_set_variable("output_driver", p->port_name); else { /* no suitable default has been found */ if (fallback == -1) /* complain, since indeterminate */ - ERROR( + ERROR2( "\7\7\7There is no X display available, so zwgc cannot run.\n\ THIS MEANS THAT YOU WILL NOT RECEIVE ANY ZEPHYR MESSAGES.\n\ If you wish to receive Zephyr messages, you should start zwgc\n\ -with the -ttymode option (type '/usr/etc/zwgc -ttymode').\n\ -Read the zwgc(1) manual page for details on the fallback variable.\n\n"); +with the -ttymode option (type `%s -ttymode').\n\ +Read the zwgc(1) manual page for details on the fallback variable.\n\n", + ZWGCPATH); exit(1); } } else -- cgit v1.2.3