diff options
author | Kenneth G Raeburn <raeburn@mit.edu> | 1990-10-19 04:27:35 +0000 |
---|---|---|
committer | Kenneth G Raeburn <raeburn@mit.edu> | 1990-10-19 04:27:35 +0000 |
commit | 1529ed4897ce8bb36d4b7bcc63e4836654092683 (patch) | |
tree | 240498fec9880ac90a7268cfd9e4ccbc5ccb68bc /zwgc/standard_ports.c | |
parent | d4ca8beb55a33444f3e3c9fbe46cbebe1b8eabe8 (diff) |
Use ZWGCPATH in message instead of explicit path.
Diffstat (limited to 'zwgc/standard_ports.c')
-rw-r--r-- | zwgc/standard_ports.c | 11 |
1 files changed, 8 insertions, 3 deletions
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 <zephyr/zephyr.h> +#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 |