Author: mlytwyn
Date: Mon Aug  8 18:15:44 2016
New Revision: 40053

URL: http://svn.gna.org/viewcvs/gnustep?rev=40053&view=rev
Log:
Updates for supporting output/error redirect on windows in applications

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m?rev=40053&r1=40052&r2=40053&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m    
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSPasteboard.m    Mon Aug 
 8 18:15:44 2016
@@ -2087,7 +2087,16 @@
                         name: @"GSStartup-GPBS"
                       object: nil];
 
+#if defined(__MINGW32__)
+             NSTask *task = AUTORELEASE([NSTask new]);
+             [task setStandardError:[NSFileHandle 
fileHandleForWritingAtPath:@"CON"]];
+             [task setStandardOutput:[NSFileHandle 
fileHandleForWritingAtPath:@"CON"]];
+             [task setLaunchPath:cmd];
+             [task setArguments:args];
+             [task launch];
+#else
              [NSTask launchedTaskWithLaunchPath: cmd arguments: args];
+#endif
              RELEASE(args);
 
              timeoutDate = [NSDate dateWithTimeIntervalSinceNow: 5.0];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to