mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-21 19:01:16 +00:00
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:
parent
f45c83caed
commit
9f5aa018c6
1 changed files with 16 additions and 0 deletions
16
EcCommand.m
16
EcCommand.m
|
@ -1690,6 +1690,22 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
|
||||||
NSString *failed = nil;
|
NSString *failed = nil;
|
||||||
NSString *m;
|
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.
|
/* Record time of launch start and the fact that this is launching.
|
||||||
*/
|
*/
|
||||||
[launches setObject: now forKey: key];
|
[launches setObject: now forKey: key];
|
||||||
|
|
Loading…
Reference in a new issue