El mar, 18-07-2006 a las 17:24 +0200, Josias Thöny escribió: > On Tue, 2006-07-18 at 17:15 +0200, Joachim Wolfgang Kaltz wrote: > > Josias Thöny schrieb: > > > On Tue, 2006-07-18 at 10:02 +0200, Thorsten Scherler wrote: > > > (...) > > >> > > >>Is there a benefit if headless=false is set and the server has a > > >>xserver? > > > > > > > > > I think setting headless=true shouldn't make any difference if an > > > xserver is running, because we don't display anything. > > > I tried headless=true on my machine (with a running xserver) and > > > everything seemed to be normal. But I didn't test extensively. > > > > > > Does anybody else have an opinion on this? > > > > There are some things that may not work if this option is set. For > > example, IIRC introspection on an image file will use awt and therefore > > won't work. I vaguely remember some code in Lenya 1.2 (regarding asset > > handling) making use of this. > > Lenya uses awt, that's right. And if there is no xserver running, it > throws an exception. But if you set headless=true, it works even if no > xserver is running. > Only things which directly use the display don't work (like e.g. > creating an awt Panel). > At least that's my understanding of the matter... I may be wrong.
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/ Reading this article and Josias argument I agree to deliver the lenya.sh with headless set to true. One can always override it, by export JAVA_OPTIONS='-Djava.awt.headless=false' If nobody objects I will patch the shell script like described in the other mail. salu2 -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
