[rkward] rkward: Attempt to get rid of the console window on Windows.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Thu Mar 5 19:41:17 UTC 2015


Git commit dde1465484aca14b8457197a5d8440cd18e243c1 by Thomas Friedrichsmeier.
Committed on 05/03/2015 at 19:40.
Pushed by tfry into branch 'master'.

Attempt to get rid of the console window on Windows.
Might be worth adding to 0.6.3.

M  +4    -0    rkward/rkward_startup_wrapper.cpp

http://commits.kde.org/rkward/dde1465484aca14b8457197a5d8440cd18e243c1

diff --git a/rkward/rkward_startup_wrapper.cpp b/rkward/rkward_startup_wrapper.cpp
index da843e8..def9d88 100644
--- a/rkward/rkward_startup_wrapper.cpp
+++ b/rkward/rkward_startup_wrapper.cpp
@@ -299,7 +299,11 @@ int main (int argc, char *argv[]) {
 	if (debug_level > 2) qDebug ("Starting frontend: %s %s", qPrintable (r_exe), qPrintable (call_args.join (" ")));
 
 	InteractiveProcess proc;
+#ifdef Q_WS_WIN
+	proc.setProcessChannelMode (debugger_args.isEmpty () ? QProcess::MergedChannels : QProcess::ForwardedChannels);   // ForwardedChannels causes console window to pop up!
+#else
 	proc.setProcessChannelMode (QProcess::ForwardedChannels);
+#endif
 	proc.start (quoteCommand (r_exe), call_args);
 	bool ok = proc.waitForFinished (-1);
 	if (proc.exitCode () || !ok) {



More information about the rkward-tracker mailing list