[Gambas-user] how to detect run ide in macox or other os? in linux uses proc!
PICCORO McKAY Lenz
mckaygerhard at gmail.com
Thu Jun 21 14:39:57 CEST 2018
tyhe difference its that when run from ide are running from a user, i had
been made a deamon manager in pieces.. i need to detect if are running from
ide without any setup from developer, like java profiles does!
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
2018-06-20 18:03 GMT-04:00 Benoît Minisini <g4mba5 at gmail.com>:
> 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
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180621/b77d7898/attachment.html>
More information about the User
mailing list