--- multi-aterm-0.2.1/src/main.c 2004-09-03 20:49:36.000000000 +0200 +++ multi-aterm-0.2.1.new/src/main.c 2008-05-03 13:33:04.000000000 +0200 @@ -1853,15 +1853,13 @@ //get_options(argc, argv); //display_options(); - if (display_name == NULL) - if ((display_name = getenv("DISPLAY")) == NULL) - display_name = ":0"; - Xdisplay = XOpenDisplay(display_name); if (!Xdisplay) { - print_error("can't open display %s", display_name); + print_error("can't open display %s", display_name?display_name: + getenv("DISPLAY")?getenv("DISPLAY"): + "as no -d given and DISPLAY not set"); exit(EXIT_FAILURE); }