convenience tweak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@37933 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-05-31 15:16:41 +00:00
parent f45c83caed
commit 9f5aa018c6

View file

@ -1690,6 +1690,22 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
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];