Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!date '+%m/%d/%y %H:%M:%S'brchs1!bnr.ca!riceu!sun-spots-request From: rickg@toshiba.tic.oz.au (Rick Gunderson) Newsgroups: comp.sys.sun Subject: Determining if SunView is Running Keywords: Windows Message-ID: <395@brchh104.bnr.ca> Date: 21 Nov 90 14:30:23 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 46 Approved: Sun-Spots@rice.edu X-Original-Date: 6 Nov 90 04:31:48 GMT X-Sun-Spots-Digest: Volume 9, Issue 353, message 15 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu How can a process determine if the SunView window manager is running? I want to do this because I want to have a process monitor that starts up SunView and, when the monitor verifies that SunView is running, starts up other processes that use SunView. It is easy enough to start up a process that requires SunView by setting the ``WINDOW_PARENT'' and ``WIN_ENV_PLACEHOLDER'' variable correctly, but I need to make sure that SunView is actually running first. What I want: Process Monitor | +------------+---+-----------+ | | | SunView Process A Process B The current situation: SunView | | Process Monitor | +--------+-------+ | | Process A Process B I don't want the Process Monitor to be a child of SunView, I want it to be the parent. I would prefer not to have to snoop through the process list to find out if SunView is running; it would be nice if there was some kind of SunView function call. I'm pretty sure I could do this under OpenWindows (simply by trying to establish a connection to the X server), but the first pass of this has to be done under SunView. Thanks in advance, = Rick Gunderson - Toshiba International Corp. = = ACSnet: rickg@toshiba.tic.oz Internet: rickg@toshiba.tic.oz.au =