On Thu, 2014-03-20 at 12:26 +0200, Lubomir I. Ivanov wrote:
> >
> >> well, technically, the fact that stdout and stderr go into the abyss
> >> for GUI apps, doesn't mean we *can't* pipe them where we want to.
> >> i simply didn't understand the need for it. i guess i can be useful to
> >> gather debug information from users, if instructed to pass an extra
> >> argument.
> >>
> >> 1) we add the -win32console command line argument that is a NOP on
> >> other platforms
> >> 2) users can add it when calling the exe from the terminal or from a
> >> desktop shortcut
> >> 3) it pipes our output to a dedicated terminal (created on the fly) or
> >> to the starting terminal process

Yes, except don't pipe it to a terminal but instead into a
QMessageWindow or something like that.

> >> a bit confused with the whole GSOC idea thing and if a student should
> >> take this, but i can certainly write this one quickly...
> >> around 30 LOC of a patch.

Exactly. Which is why I thought one of the students trying to fulfill
the two patch requirement could implement this.

> > my impression was that the suggested solution is not to add anything to the 
> > source but change the build process for Windows such that the option is set 
> > to keep the connection with the terminal for STDOUT and STDERR. I remember 
> > seeing a stack overflow page describing it. Alternatively the flag could be 
> > set in the resulting binary. But I haven’t used windows in a while. What we 
> > don’t want is to open a console window with every start (as a GUI program) 
> > of subsurface.
> >
> 
> i use this ATM:
> qmake "config += CONSOLE"
> 
> which basically makes subsurface a console application and it always
> has a console (stderr/stdout are visible there) even if started from a
> desktop shortcut.
> so what we can do is create a separate += CONSOLE installer for
> windows, but this is more work for dirk. this is the only solution
> without source code changes that i can see.

No, that's not the goal. Having a separate installer that people need to
download and install instead of just a command line flag... that's
silly.

/D

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to