1
0
spegling av https://github.com/exoticswingset/TruthfulDock.git synced 2025-06-30 21:36:45 +00:00
Files
TruthfulDock/truthfuldockprefs/TDPRootListController.m
exoticswingset 2449378a84 Update V2.0
2020-01-03 00:18:09 -05:00

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