Re: Can't read stdout of bash with GSubprocess on MSYS2
- From: Earnie <earnie users sourceforge net>
- To: Fan, Chun-wei (范君維) <fanc999 yahoo com tw>, Gang Chen <gang chen cn gmail com>, gtk-list <gtk-list gnome org>
- Subject: Re: Can't read stdout of bash with GSubprocess on MSYS2
- Date: Tue, 29 Sep 2015 06:57:42 -0400
On 9/29/2015 1:43 AM, Fan, Chun-wei (范君維) wrote:
Hi Gang,
You can take a look at https://support.microsoft.com/en-US/kb/105305.
Basically, you need to have a console attached to the GUI app for your
case to work.
By running your code, and by adding AllocConsole() just before you spawn
the subprocess, I was able to get the output.
Yes but the purpose of -mwindows is to remove the automatic console
allocation. Why use it then?
--
Earnie
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]