spegling av
https://github.com/exoticswingset/TruthfulDock.git
synced 2025-06-30 21:36:45 +00:00
24 rader
459 B
Objective-C
24 rader
459 B
Objective-C
#include "TDPRootListController.h"
|
|
#import <spawn.h>
|
|
|
|
@implementation TDPRootListController
|
|
|
|
- (NSArray *)specifiers {
|
|
if (!_specifiers) {
|
|
_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
|
|
}
|
|
|
|
return _specifiers;
|
|
}
|
|
|
|
- (void)respring
|
|
{
|
|
pid_t pid;
|
|
int status;
|
|
const char* args[] = {"killall", "-9", "backboardd", NULL};
|
|
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
|
|
waitpid(pid, &status, WEXITED);
|
|
}
|
|
|
|
@end
|