mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Fixed [NSProcessInfo -processName] and updated places that used it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
728ed7b08b
commit
818b4aad92
4 changed files with 38 additions and 28 deletions
|
@ -312,7 +312,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
|
|||
char *output;
|
||||
NSString *path, *s;
|
||||
|
||||
path = [[NSProcessInfo processInfo] processName];
|
||||
path = [[[NSProcessInfo processInfo] arguments] objectAtIndex: 0];
|
||||
output = objc_find_executable([path cString]);
|
||||
NSAssert(output, NSInternalInconsistencyException);
|
||||
path = [NSString stringWithCString: output];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue