[Gambas-user] how to detect run ide in macox or other os? in linux uses proc!

Benoît Minisini g4mba5 at gmail.com
Thu Jun 21 00:03:46 CEST 2018


Le 20/06/2018 à 23:42, PICCORO McKAY Lenz a écrit :
> i have this code to detect if gambas runs at ide the current project or 
> the project are compiled and runs by own:
> 
>      strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm")
>      If Left(strProcess, 4) = "gbx3" Then
>          Return -1
>      Else
>          Return 0
>      Endif
> 
> BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any 
> OS/environment if my program runs at ide or not?
> 
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> 
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> 

You should not need to know if you are running a project from the IDE or 
not.

Even if it is not true, you should not see any difference between 
running from the IDE or not, and any program should not rely on any 
possible difference.

-- 
Benoît Minisini


More information about the User mailing list