Skip to content

Commit

Permalink
Merge pull request #261 from bambu/envfix
Browse files Browse the repository at this point in the history
Fixed setting the environment variables
  • Loading branch information
rogual committed Jun 11, 2016
2 parents c7fc6e8 + 7577bc2 commit 014a537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 014a537

Please sign in to comment.