From bcdacecd7b7fca9b5f515d25f11ffa1a2936cbb9 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Thu, 13 Apr 2023 07:51:37 -0700 Subject: Switch back to theos --- QuickActions/QuickActionsPrefs/Makefile | 16 ++++++++++++++++ QuickActions/QuickActionsPrefs/QASRootListController.m | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 QuickActions/QuickActionsPrefs/Makefile (limited to 'QuickActions/QuickActionsPrefs') diff --git a/QuickActions/QuickActionsPrefs/Makefile b/QuickActions/QuickActionsPrefs/Makefile new file mode 100644 index 0000000..a00d795 --- /dev/null +++ b/QuickActions/QuickActionsPrefs/Makefile @@ -0,0 +1,16 @@ +TARGET := iphone:14.5:15.0 + +include $(THEOS)/makefiles/common.mk + +ARCHS := arm64 arm64e + +BUNDLE_NAME = QuickActionsPrefs + +QuickActionsPrefs_FILES = QASRootListController.m QASAppSelectorController.m LSApplicationProxy+AltList.m +QuickActionsPrefs_FRAMEWORKS = UIKit +QuickActionsPrefs_PRIVATE_FRAMEWORKS = Preferences +QuickActionsPrefs_EXTRA_FRAMEWORKS = MobileCoreServices +QuickActionsPrefs_INSTALL_PATH = /Library/PreferenceBundles +QuickActionsPrefs_CFLAGS = -fobjc-arc + +include $(THEOS_MAKE_PATH)/bundle.mk diff --git a/QuickActions/QuickActionsPrefs/QASRootListController.m b/QuickActions/QuickActionsPrefs/QASRootListController.m index 31a4eb7..c3701eb 100644 --- a/QuickActions/QuickActionsPrefs/QASRootListController.m +++ b/QuickActions/QuickActionsPrefs/QASRootListController.m @@ -18,6 +18,7 @@ #import #import "QASRootListController.h" #include +#include @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 -- cgit v1.2.3-56-ge451