hanahaki/hanahakiprefs/HANARootListController.m
lillian rose winter 2da7325a5d 🎉 first commit
2019-11-25 08:53:53 -06:00

20 lines
545 B
Objective-C

#include "HANARootListController.h"
@implementation HANARootListController
- (NSArray *)specifiers {
if (!_specifiers) {
_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
}
return _specifiers;
}
- (void)respring {
pid_t respringPid;
char *respringArgv[] = {"/usr/bin/killall", (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_6_0) ? "backboardd" : "SpringBoard", NULL};
posix_spawn(&respringPid, respringArgv[0], NULL, NULL, respringArgv, NULL);
waitpid(respringPid, NULL, WEXITED);
}
@end