Skip to content

Commit

Permalink
Show profile manager in the foreground using open
Browse files Browse the repository at this point in the history
  • Loading branch information
gilmoreorless committed Sep 24, 2012
1 parent 05b7f29 commit fd1fd1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MFF.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ + (void)openFirefoxProfilesWindow:(NSString *)version
{
NSLog(@"version: %@", version);

NSString *toBeCalled = [[@"'" stringByAppendingString:[self getFirefoxPath:version]] stringByAppendingString: @"' --profilemanager &"];
NSString *toBeCalled = [[@"open \"" stringByAppendingString:[self getFirefoxPath:version]] stringByAppendingString: @"\" --args --profilemanager"];

NSLog(@"%@", [@"Profile Launch call: " stringByAppendingString:toBeCalled]);
NSLog(@"Profile Launch call: %@", toBeCalled);

system([toBeCalled UTF8String]);

}

+ (NSString *) getFirefoxPath:(NSString *)version
{
NSString *firefoxPath = [[__APPLICATIONS_PATH__ stringByAppendingPathComponent:[version stringByAppendingString:@".app"]] stringByAppendingPathComponent:@"Contents/MacOS/firefox-bin"];
NSString *firefoxPath = [__APPLICATIONS_PATH__ stringByAppendingPathComponent:[version stringByAppendingString:@".app"]];
return firefoxPath;
}

Expand Down

0 comments on commit fd1fd1a

Please sign in to comment.