Is Photon Running

I have a program that does some fairly intensive computing. But the user
interface is very simple. If like the program to present a Photon interface
IF Photon is running and a text only interface if Photon is not running.

What is the easiest way to test if Photon is running from code?


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net

Bill Caroselli <qtps@earthlink.net> wrote:

I have a program that does some fairly intensive computing. But the user
interface is very simple. If like the program to present a Photon interface
IF Photon is running and a text only interface if Photon is not running.

What is the easiest way to test if Photon is running from code?

If someone is running Photon on the machine, but your program was
started by someone else from a telnet session, do you want your program
to display in the other person’s Photon anyway? :slight_smile:

If not, I’d recommend that you just check the PHOTON envorinment
variable, and assume that Photon is running if it’s set.

“Wojtek Lerch” <wojtek_l@yahoo.ca> wrote in message
news:bdpobp$jtk$2@inn.qnx.com

Bill Caroselli <> qtps@earthlink.net> > wrote:
I have a program that does some fairly intensive computing. But the
user
interface is very simple. If like the program to present a Photon
interface
IF Photon is running and a text only interface if Photon is not running.

What is the easiest way to test if Photon is running from code?

If someone is running Photon on the machine, but your program was
started by someone else from a telnet session, do you want your program
to display in the other person’s Photon anyway? > :slight_smile:

No.



If not, I’d recommend that you just check the PHOTON envorinment
variable, and assume that Photon is running if it’s set.

Thank you.