[Gambas-user] restarting a gambas application

Demosthenes Koptsis demosthenesk at ...626...
Fri Jul 15 22:49:27 CEST 2011

I think you need to fork a process or something like that.

As i know in Gambas the only thing that this happens is when you set 
Application.Deamon property.


The application forks, and terminates the newly created parent, so that
the real parent of the application does not wait for its termination.

It could be usefull to fork the application without making it a deamon.
Because in a deamon case you cannot do some things.

The standard input, standard output and standard error output are

But is this what you want?

On Fri, 2011-07-15 at 12:40 -0500, zachsmith022 at ...626... wrote:
> Does anyone know how to automatically close and restart a running gambas 
> program?
> For example, if I have a program update available, I'd like to click a 
> button in my program ("Install/Run update") that would start an 
> intermediate program that would stop my program, then the intermediate 
> program would overwrite the main program with an upgraded version, then 
> it would start the upgraded program, and then the intermediate program 
> would quit.  The problem is that by using the shell or exec commands a 
> child process is created and the parent app. never quits.
> The thing I'm looking for would be somewhat similar to what happens when 
> you run xfrun4 in Xfce.  There, you press Alt+F2 to bring up a command 
> entry box, it then starts the program you have typed in and then xfrun4 
> quits.  There are no remaining parent/child issues.
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric 
> Ries, the creator of the Lean Startup Methodology on "Lean Startup 
> Secrets Revealed." This video shows you how to validate your ideas, 
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


More information about the User mailing list