[Gambas-user] who to detect if are running inside IDE

PICCORO McKAY Lenz mckaygerhard at ...626...
Tue Jul 4 18:59:40 CEST 2017


so in short investigations i have

  Public Sub Main()
print "running"
  #If Exec
    print "in ide"
  #Endif
  End

so testing by normal steps to compile produce a exec (either a cgi or not)
so works for cgi:

  $ gbc3 -ga
  $ gba3
  $ ./test.gambas
running

but for other cases i see tha if gambas archiver for executables are not
run for distribute, it fails:

  $ gbx3 /tmp/testexec
running

in the reference mail it fails, but for production detection are good..
 due its only for set paths, vars and environment

this due, another way its detecting the gambas runtime environment.. seem
gambas create a lof of files in /proc, based on Application.Id.. and also
in "/tmp" ...

i'm very curious about how gambas made this in cygwin installations, and or
in macos/freebsd flavors (if any)

2017-07-03 18:44 GMT-04:00 PICCORO McKAY Lenz <mckaygerhard at ...626...>:

> 2017-07-03 14:40 GMT-04:00 Tobias Boege <taboege at ...626...>:
>
>> Exact same question here: https://sourceforge.net/p/gamb
>> as/mailman/message/34204796/
>
> its does work for scripts, gambas.cgi or normal excecutables?
>
>



More information about the User mailing list