]> git.cameronkatri.com Git - tweaks.git/blobdiff - QuickActions/QuickActionsPrefs/QASRootListController.m
Fix iOS 15+
[tweaks.git] / QuickActions / QuickActionsPrefs / QASRootListController.m
index 31a4eb72ef9760c3c15551f3bac5a2a0eb35f9fe..c3701eb04fea21b24e7a47bdd46777fa8fee5325 100644 (file)
@@ -18,6 +18,7 @@
 #import <Preferences/PSSpecifier.h>
 #import "QASRootListController.h"
 #include <spawn.h>
+#include <rootless.h>
 
 @implementation QASRootListController
 
@@ -39,7 +40,7 @@
 {
        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