[comp.sys.atari.st.tech] TOS or GEM ??

stefan@hpbbi4BBN.HP.COM (#Stefan Bachert) (07/30/90)

Does anyone how a program can detect if it was started

	as a
		GEM-Application
	or as a
		TOS-Program

I want to check if a program accidently was started
by an TOS-Shell.


Thanks Stefan

ripley@tubopal.UUCP (Hans-Ch. Eckert) (08/01/90)

[I wanted to send this as mail, but it bounced...]

[Stefan asked how to know whether a program was started from a TOS-only
shell...]
I didn't try it, but I think this will make applinit return a failure.
On which occasions can it fail anyway (except this one)?

Hope this helps,
                                RIPLEY


-- 
Greetings from RIPLEY | UUCP: ripley@tubopal.UUCP (ripley@opal.cs.tu-berlin.de)
Hans-Christian Eckert |         ...!unido!tub!opal!ripley (Europe) 
D-1000 Berlin 30      |         ...!pyramid!tub!opal!ripley (World)
Regensburger Str. 2   | BITNET: ripley%tubopal@DB0TUI11.BITNET (saves $$$)

hvaalde@cs.vu.nl (Aalderen van Harold) (08/01/90)

ripley@tubopal.UUCP (Hans-Ch. Eckert) writes:

>[Stefan asked how to know whether a program was started from a TOS-only
>shell...]
>I didn't try it, but I think this will make applinit return a failure.
>On which occasions can it fail anyway (except this one)?

Every non AUTO folder program can call appl_init() succesfully,
The only way to find out if the program was lauched from a TOS-only shell
(I guess you mean command line shell), is to check the parent basepage
you can find the through the system variable that points to the
OS-header (can't remeber the name, and don't know the location by heart)

Tried to send this to stefan but it keeps bouncing


Harold van Aalderen (hvaalde@cs.vu.nl)
Vrije Universiteit Amsterdam