Re: Console screen from spawn_process



On Thu, 2008-10-16 at 10:15 -0200, Paulo Flabiano Smorigo wrote:
> Hi everyone,
> 
> I'm developing an application to run on Windows and uses spawn_process
> to run a command.
> I use the "-mwindows" paramenter to avoid the console screen but when
> I use the spawn the screen appears.
> The title of this console is the name of the executable that I
> spawned.

I guess the spawned applications needs to be built with the -mwindows
flag for this. It is also possible to change that flag after the
application has been built.

The Windows CreateProcess() API has a flag to suppress the console
window for the child, but Glib does not use it for spawning
applications.

There has been a bug report about this which has been closed as WONTFIX:
http://bugzilla.gnome.org/show_bug.cgi?id=509201

So your options are either to change the -mwindows flag of the child
process (if you have control over that), or to use the Windows
CreateProcess() API directly.

Armin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]