Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: pp@info.win.tue.nl Newsgroups: comp.sys.sun Subject: Detect if in X Keywords: Windows Message-ID: <1713@brchh104.bnr.ca> Date: 21 Feb 91 20:15:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 23 Approved: Sun-Spots@rice.edu X-Original-Date: 15 Feb 91 08:37:27 GMT X-Sun-Spots-Digest: Volume 10, Issue 44, message 2 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu Can anyone tell me if there's a way to determine if (on a SUN) I'm 1 - In Sunview 2 - In X (e.g. open look) And are these cases destinguishable ?? As you will know starting up open windows using the "openwin" script will define LD_LIBRARY_PATH and OPENWINHOME. Using these environment variables would be nice, but anybody can define these environment variables, even when not in open windows. In fact there are situations that you will have to define these environment variables yourself ! So that's not a certified way to make sure you're in open windows. There also are other environment variables (like WINDOW_PARENT) that indicate you are in open windows OR sunview, but you can't distinguish which one..... So the question above is still valid..... Any help is appreciated. | Peter Peters | UUCP : pp@win.tue.nl | | Eindhoven University of Technology (TUE) | PHONE : +31-(0)40-474120 | | Dept. of Mathematics and Computer Science | TUE : HG 8.82 / 4120 | | Disclaimer : I said WHAT ??? | VHF : pa0ppe | Brought to you by Super Global Mega Corp .com