Am I running under sunview?

Graham Underwood advsys!graham at relay.eu.net
Mon Mar 12 22:33:26 AEST 1990


Does anyone know a reliable way for a program to detect whether it is
executed under Sunview or not.

The way Sun supplied applications (such as shelltool) work is to check for
WINDOW_PARENT in the environment.  This test however breaks down if the
program is executed using `on' since the environment is exported. 

What I want to achieve is for a program to detect if it is running from
Sunview and present a graphical user interface or, if not, do the best it
can with a tty style interface.  

Does anyone out there know how this can be done ?

graham at advent.co.uk
..!ukc!advsys!graham



More information about the Comp.sys.sun mailing list