diff --git a/Tools/pl2link.m b/Tools/pl2link.m index de1aacd9f..c3c729056 100644 --- a/Tools/pl2link.m +++ b/Tools/pl2link.m @@ -207,18 +207,10 @@ main(int argc, char** argv, char **env) entry = [plist objectForKey: @"NSExecutable"]; if (entry != nil) { - FILE *fp; - char line[130]; NSString *execPath = nil; - int l = 0; - - fp = popen("which openapp","r"); - fgets(line,sizeof line,fp); - l = strlen(line); - line[l-1] = '\0'; // Build the string to execute the application... - execPath = [NSString stringWithCString: line + execPath = [NSString stringWithCString: "/usr/bin/openapp" encoding: NSASCIIStringEncoding]; [fileContents appendFormat: @"Exec=%@ %@\n", execPath, entry]; }