[Gambas-user] Speaking of using common linux tools

Bruce Steers bsteers4 at gmail.com
Sun Dec 11 12:36:16 CET 2022

Try this in your startup class

#If Exec

When compiling an exe gambas sets the x flag. The IDE does not when

So the above code #If Exec is true if run from desktop and not if run from

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

> On 11/12/22 8:45 pm, Fabien Bodard wrote:
> normally you just have to modify the .Desktop content and set
> the entry :
> NoDisplay=true
> so the menu or Desktop will not show it.
> --
> Fabien Bodard
> Well, that didn't work. It's still visible on the desktop (xfce4, or
> whatever the damned things called)
> and it still runs the executable.
> I'll try to explain a bit more.
> I have a project that needs, at the moment, to be only run in the IDE as
> it has a bunch of debugging things in it. I don't really want to delete it
> for various local "tweak" reasons. Instead I would like to insert a little
> command at the front of the "Exec=" that just pops up a little window
> saying "Don't run this, you fool, use the IDE until further notice".
> It's not a big thing, but I would like to look further down the line to be
> able to set this in the project when I make the executable and therefore
> the desktop icon so I can stop myself doing things that need debugging.
> Make sense?
> Nevermind, I'll probably stop creating the desktop entry when I build the
> thing.
> cheers
> bruce
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20221211/fcc54cf3/attachment.htm>

More information about the User mailing list