summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2013-07-02 11:12:57 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-07-02 11:12:57 +0100
commit13574a629b20d57e988c02064d1addb039cbcd67 (patch)
tree42c3f3aad1cae0a012d3eb19facdf87338071e96
parent5c4420261959745dae3ce8ecfbb2224578253c47 (diff)
Report defaulting to $DISPLAY even more clearly
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2ef87dc..bc92fd5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -177,7 +177,7 @@ int main(int argc, char **argv)
if (optind < argc)
help();
- DEBUG("screen is '%s'\n", screen ? screen : "$DISPLAY");
+ DEBUG("screen is '%s'\n", screen ? screen : getenv("DISPLAY"));
// ensure this thread has a message queue
MSG msg;