<div dir="ltr"><div>i dont know if are always correct and works for linux as for mac/freebsd ???? ><br><br>    strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm")<br>    If Left(strProcess, 4) = "gbx3" Then<br></div>        print "running from ide, using own internal project files"<br><div>    Else<br></div><div>        print "running as standalone app, use files from system"<br></div><div>    Endif<br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.com</a></font></div></div></div>
<br><div class="gmail_quote">2018-06-21 8:39 GMT-04:00 PICCORO McKAY Lenz <span dir="ltr"><<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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! <br></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_6964827521588186765gmail_signature" data-smartmail="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.<wbr>com</a></font></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">2018-06-20 18:03 GMT-04:00 Benoît Minisini <span dir="ltr"><<a href="mailto:g4mba5@gmail.com" target="_blank">g4mba5@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_6964827521588186765HOEnZb"><div class="m_6964827521588186765h5">Le 20/06/2018 à 23:42, PICCORO McKAY Lenz a écrit :<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_6964827521588186765h5">
i have this code to detect if gambas runs at ide the current project or the project are compiled and runs by own:<br>
<br>
     strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm")<br>
     If Left(strProcess, 4) = "gbx3" Then<br>
         Return -1<br>
     Else<br>
         Return 0<br>
     Endif<br>
<br>
BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any OS/environment if my program runs at ide or not?<br>
<br>
<br>
Lenz McKAY Gerardo (PICCORO)<br>
<a href="http://qgqlochekone.blogspot.com" rel="noreferrer" target="_blank">http://qgqlochekone.blogspot.c<wbr>om</a><br>
<br>
<br>
<br></div></div>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
<br>
</blockquote>
<br>
You should not need to know if you are running a project from the IDE or not.<br>
<br>
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.<span class="m_6964827521588186765HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>