The simple question is: how to find out the location of an executable file in a Cocoa application.
Remember that, in many Unix-like OS people use PATH environment t
Related to Brian Webster's answer:
An easier way to get the User's shell is to use the NSProcessInfo class. e.g
NSDictionary *environmentDict = [[NSProcessInfo processInfo] environment];
NSString *shellString = [environmentDict objectForKey:@"SHELL"];
Which is easier than using dscl and parsing XML input.