blob: 27f56255acdb403e855805b5515c807ade0eda30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- 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);
}
|