Re: g_spawn*() on windows
- From: jcupitt gmail com
- Cc: gtk-app <gtk-app-devel-list gnome org>
- Subject: Re: g_spawn*() on windows
- Date: Thu, 3 Jul 2014 15:50:31 +0100
On 3 July 2014 15:26, Allin Cottrell <cottrell wfu edu> wrote:
On Thu, 3 Jul 2014, Michael Cronenworth wrote:
On 07/03/2014 08:33 AM, jcupitt gmail com wrote:
Yes, I'm doing that. It all works and I can capture stdout and stderr
from the convert.exe I'm running, it's just that I get a very annoying
command window flash on the screen each time.
If anyone has any ideas about the command window, I'm all ears:-(
I don't have ImageMagick binaries to check myself, but are they compiled
as Windows apps or console apps? Console apps will always force a command
prompt window to open. This is not a by-product of a g_spawn call.
Within the win32 API there's a way to suppress the appearance of the console
in such a situation (by passing the flag CREATE_NO_WINDOW to the function
CreateProcess). I don't know offhand if the gspawn API exposes this option.
g_spawn_helper uses _wspawnv() to launch the .exe which unfortunately
does not have this option. I think g_spawn_helper might need reworking
to use CreateProcess or similar.
I could have a go at a patch, though I don't know much about win32 and
I'd probably make a hash of it :(
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]