Console/Shell Programs Detecting GUI
Pierre Sahores
psahores at easynet.fr
Wed Mar 3 13:05:25 EST 2004
Le 3 mars 04, à 09:39, Kevin a écrit :
Hi Kevin,
>
> How do I go about writing a "standalone" console application with a
> gui switch (since at this time I cannot figure out how to check if GUI
> is present)? I have found several referencs on processing command
> line parameters but nothing yet on running "headless".
Just add the line below to your "on preOpenStack" :
> if the num of lines in the windows is "1"
> then -- you are in console mode
> else -- you are in graphical mode
Works well there under both Linux and OSX in stack mode (standalone
never tested).
--
Bien cordialement, Pierre Sahores
100, rue de Paris
F - 77140 Nemours
psahores at easynet.fr
GSM: +33 6 03 95 77 70
Pro: +33 1 41 60 52 68
Dom: +33 1 64 45 05 33
Fax: +33 1 64 45 05 33
Inspection académique de Seine-Saint-Denis
Applications et SGBD ACID SQL (WEB et PGI)
Penser et produire "delta de productivité"
More information about the use-livecode
mailing list