Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force to quit on maverick #4

Open
xeonarno opened this issue Feb 5, 2015 · 0 comments
Open

Force to quit on maverick #4

xeonarno opened this issue Feb 5, 2015 · 0 comments

Comments

@xeonarno
Copy link

xeonarno commented Feb 5, 2015

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 !!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant