summaryrefslogtreecommitdiff
path: root/intemperateprefs/INPRootListController.m
blob: 2f29e970fdb5067f3a44063f20d2cc6330248dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#import <Preferences/PSListController.h>
#import <spawn.h>
@interface INPRootListController : PSListController

@end

@implementation INPRootListController

- (NSArray *)specifiers {
        if (!_specifiers) {
                _specifiers = [self loadSpecifiersFromPlistName:@"Intemperate" target:self];
        }

        return _specifiers;
}
-(void)respring {
        pid_t pid;
        const char* args[] = {"sbreload", NULL};
        posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)args, NULL);
}
-(void)openTwitterDM {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/messages/compose?recipient_id=974524608949903361&text=%28Please+describe+your+issue+here%29"] options:@{} completionHandler:nil];
}
-(void)openTwitter5px {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/o5pxels"] options:@{} completionHandler:nil];
}
-(void)openGitHub {
	[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/fivepixels/intemperate"] options:@{} completionHandler:nil];
}
@end