how to detect headless mode from code?

Bert Freudenberg bert at impara.de
Mon Feb 6 23:37:05 UTC 2006


Am 06.02.2006 um 23:48 schrieb Petr Fischer:

> Hi!
>
> Can I detect headless mode from code?
> (I have some server task implemented in squeak and I want to
> automatically quit from image after task is done - but only in  
> headless
> mode.)

You can access the command line parameters via #getSystemAttribute:

Also, IIRC, the Display extent in headless mode is quite small.

- Bert -




More information about the Squeak-dev mailing list