Author: rfm
Date: Sat May 31 17:16:41 2014
New Revision: 37933
URL: http://svn.gna.org/viewcvs/gnustep?rev=37933&view=rev
Log:
convenience tweak
Modified:
libs/ec/trunk/EcCommand.m
Modified: libs/ec/trunk/EcCommand.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcCommand.m?rev=37933&r1=37932&r2=37933&view=diff
==============================================================================
--- libs/ec/trunk/EcCommand.m (original)
+++ libs/ec/trunk/EcCommand.m Sat May 31 17:16:41 2014
@@ -1690,6 +1690,22 @@
NSString *failed = nil;
NSString *m;
+ /* As a convenience, the 'Home' option sets the -HomeDirectory
+ * for the process.
+ */
+ if ([home length] > 0)
+ {
+ NSMutableArray *a = [[args mutableCopy] autorelease];
+
+ if (nil == a)
+ {
+ a = [NSMutableArray arrayWithCapacity: 2];
+ }
+ [a addObject: @"-HomeDirectory"];
+ [a addObject: home];
+ args = a;
+ }
+
/* Record time of launch start and the fact that this is launching.
*/
[launches setObject: now forKey: key];
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs