[Gambas-user] Speaking of using common linux tools

Bruce Steers bsteers4 at gmail.com
Sun Dec 11 13:19:37 CET 2022


You're welcome 😎

Ps. if compiling outside the ide via shell using gbc3 be sure to use gbc3
-x to set the Exec flag.


Another simple solution to distinguish if on Ide or not was to just add an
argument in the ide debugger settings like --ide.
And only use that arg in the ide. Program checks for --ide arg on startup
and acts accordingly.

Respects
BruceS

On Sun, 11 Dec 2022, 12:10 BB, <adamnt42 at gmail.com> wrote:

> Duly acknowledged!
>
> On 11/12/22 10:06 pm, Bruce Steers wrote:
> > Try this in your startup class
> >
> > #If Exec
> >   Quit
> > #Endif
> >
> > When compiling an exe gambas sets the x flag. The IDE does not when
> > debugging.
> >
> > So the above code #If Exec is true if run from desktop and not if run
> > from IDE
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221211/da96826e/attachment.htm>


More information about the User mailing list