* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-#import "Preferences/PSTableCell.h"
#import <Foundation/Foundation.h>
+#import <Preferences/PSSpecifier.h>
#import "QASRootListController.h"
#include <spawn.h>
+#include <rootless.h>
@implementation QASRootListController
return _specifiers;
}
--(void)viewDidLoad
-{
- [super viewDidLoad];
- UIBarButtonItem *respringButton = [[UIBarButtonItem alloc] initWithTitle:@"Apply"
- style:UIBarButtonItemStylePlain
- target:self
- action:@selector(respring)];
- respringButton.tintColor = [UIColor systemRedColor];
- [self.navigationItem setRightBarButtonItem:respringButton];
-}
-
-(void)openSource
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://git.cameronkatri.com/tweaks/tree/QuickActions"] options:@{} completionHandler:nil];
{
pid_t pid;
const char *args[] = {"sbreload", NULL, NULL, NULL};
- posix_spawn(&pid, "usr/bin/sbreload", NULL, NULL, (char *const *)args, NULL);
+ posix_spawn(&pid, ROOT_PATH("/usr/bin/sbreload"), NULL, NULL, (char *const *)args, NULL);
}
@end