summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-11 07:13:49 +0000
committerDana Jansens <danakj@orodu.net>2003-01-11 07:13:49 +0000
commit19bfac5195a1917f4a0bbcf910e90d5b800c5146 (patch)
treeb3d03af6230e70b0a7fb7b47d1fe766c289334ad /otk
parent1c70394ce2d42c3e468116168be2cadb14687604 (diff)
broken to all hell. oh no.
Diffstat (limited to 'otk')
-rw-r--r--otk/display.cc1
-rw-r--r--otk/util.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/otk/display.cc b/otk/display.cc
index 33dca01b..c1d6c61e 100644
--- a/otk/display.cc
+++ b/otk/display.cc
@@ -93,6 +93,7 @@ void OBDisplay::initialize(char *name)
(void)junk;
// Open the X display
+ printf("getenv(DISPLAY)=%s\n", getenv("DISPLAY"));
if (!(display = XOpenDisplay(name))) {
printf(_("Unable to open connection to the X server. Please set the \n\
DISPLAY environment variable approriately, or use the '-display' command \n\
diff --git a/otk/util.cc b/otk/util.cc
index ebca51d5..39ea0f6c 100644
--- a/otk/util.cc
+++ b/otk/util.cc
@@ -39,6 +39,7 @@ string expandTilde(const string& s) {
const char* const home = getenv("HOME");
if (home == NULL) return s;
+printf("tilde: getenv(DISPLAY)=%s\n", getenv("DISPLAY"));
return string(home + s.substr(s.find('/')));
}