Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: advsys!graham@relay.eu.net (Graham Underwood) Newsgroups: comp.sys.sun Subject: Am I running under sunview? Keywords: Windows Message-ID: <5712@brazos.Rice.edu> Date: 12 Mar 90 12:33:26 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 15 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 77, message 3 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@advent.co.uk ..!ukc!advsys!graham