[openbeos] started from shell or mouseclick ?

  • From: scholly@xxxxxxxxxxxx (Ulrich Scholz)
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Fri, 2 May 2003 20:57:51 -0100

moin, moin...

Is it possible for a program to detect, whether it was started
from the Terminal or by Icon-Click ?

It doesn't matter, what Terminal (bash/muterm) or which Tracker.

In the bash I can use a script:

======

#! /bin/sh

alert --info $TERM ok

======

It gives my "dumb" when started by doubleclick or "beterm"
when started from bash.

Is this "system-variable" $term also readable from an app so
that the app can decide, whether it was started from terminal
or tracker ?

Or is there a better way to get this infornation ?

TIA...
scholly




Other related posts: