diff --git a/src/app.mm b/src/app.mm index f794ba1..38e5678 100644 --- a/src/app.mm +++ b/src/app.mm @@ -35,9 +35,9 @@ - (NSDictionary *)environmentFromLoginShell:(NSString *)shellPath return nil; } - NSArray *args = @[@"-i", shellPath, @"-l", @"-c", @"\"env\""]; + NSArray *args = @[@"-l", @"-c", @"env", @"-i"]; NSTask *task = [NSTask new]; - task.launchPath = @"/usr/bin/env"; + task.launchPath = shellPath; task.arguments = args; task.standardOutput = [NSPipe new]; task.standardError = [NSPipe new];