summaryrefslogtreecommitdiff
path: root/intemperateprefs/INPRootListController.m
blob: b0221afbb8c765b1c9b51dfba46c210dc18468b8 (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=765771568337264641&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