summaryrefslogtreecommitdiff
path: root/xts5/src/libproto/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'xts5/src/libproto/startup.c')
-rw-r--r--xts5/src/libproto/startup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xts5/src/libproto/startup.c b/xts5/src/libproto/startup.c
index 9f1ef52b..e3722d79 100644
--- a/xts5/src/libproto/startup.c
+++ b/xts5/src/libproto/startup.c
@@ -205,10 +205,10 @@ extern int io_err(), unexp_err();
/*
* Get the display to use and open it.
*/
- disp = tet_getvar("XT_DISPLAY");
+ disp = getenv("DISPLAY");
if (disp == (char*)0) {
- cancelrest("XT_DISPLAY not set");
+ cancelrest("DISPLAY not set");
return;
}