version 1.6, 2016/10/07 02:02:31 |
version 1.7, 2018/10/18 06:29:42 |
|
|
if ([s compare: @"PATH"] == NSOrderedSame) { |
if ([s compare: @"PATH"] == NSOrderedSame) { |
char *path; |
char *path; |
NSString *defaultPath; |
NSString *defaultPath; |
defaultPath=@"/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/sw/bin:/sw/sbin:/usr/local/bin"; |
defaultPath=@"/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/opt/local/bin:/opt/local/sbin:/opt/bin:/opt/sbin:/usr/local/bin"; |
path = getenv("PATH"); |
path = getenv("PATH"); |
if (!path) { |
if (!path) { |
s = [NSString stringWithCString: path length: strlen(path)]; |
s = [NSString stringWithCString: path length: strlen(path)]; |