[openbeos] started from shell or mouseclick ?

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: