This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
notUnderTime/undertime/udtRootListController.m
2020-01-06 19:47:45 -07:00

23 lines
531 B
Objective-C

#include "udtRootListController.h"
#import <spawn.h>
@implementation udtRootListController
- (NSArray *)specifiers {
if (!_specifiers) {
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
}
return _specifiers;
}
-(void) respring {
pid_t pid;
int status;
posix_spawn(&pid, "/usr/bin/uicache", NULL, NULL, NULL, NULL);
const char* args[] = {"killall", "-9", "backboardd", NULL};
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
waitpid(pid, &status, WEXITED);
}
@end