Go to the FreeLists Home Page Home Signup Help Login
 



[openbeos] || [Date Prev] [05-2003 Date Index] [Date Next] || [Thread Prev] [05-2003 Thread Index] [Thread Next]

[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








[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.