🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #14211

Am I running under sunview?

#14211
From: Graham Underwood
Date: Mon, 12 Mar 1990 12:33
15 lines
1029 bytes
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
Technical Details
Message-ID: <5712@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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