Skip to content

Force to quit on maverick #4

@xeonarno

Description

@xeonarno

It seams that the PrefPane is to long to launch and crash totally here is the solution :

args = [NSArray arrayWithObjects: LAUNCHCTL, nil];
self.launchctl = [self runCLICommand:WHICH arguments:args];    
self.launchctl = [self.launchctl stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

args = [NSArray arrayWithObjects:@"/usr/local/Cellar",@"-type", @"f", @"-name", REDIS_CLI, nil];
self.redis_cli = [self runCLICommand:FIND arguments:args];
self.redis_cli = [self.redis_cli stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];


args = [NSArray arrayWithObjects:@"/usr/local/Cellar",@"-type", @"f", @"-name", REDIS_SERVER, nil];
self.redis_server = [self runCLICommand:FIND arguments:args];
self.redis_server = [self.redis_server stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];


args = [NSArray arrayWithObjects:@"/usr/local/etc",@"-type", @"f", @"-name", @"redis.conf", nil];
self.redis_conf = [self runCLICommand:FIND arguments:args];
self.redis_conf = [self.redis_conf stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];

Change the path in the Args to get the element faster !!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions