Skip to content
Prev 26535 / 63424 Next

(PR#10379) Re: x11(....) kills R without DISPLAY

Hin-Tak Leung wrote:
The culprit would seem to be this bit of devX11.c

1302                    xtdpy =3D XtOpenDisplay(app_con, NULL, "r_x11",=20
"R_x11",
1303                                          NULL, 0, &zero, NULL);
1304                    toplevel =3D XtAppCreateShell(NULL, "R_x11",

The 2nd arg to XtOpenDisplay is listed as display_string, so passing a=20
NULL here seems like trouble when the default ways of finding the=20
display do not work.

Looks like a fix is to insert p instead of NULL. (Tested rudimentarily.)



--=20
   O__  ---- Peter Dalgaard             =D8ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327=
918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327=
907