Attempt a million

This commit is contained in:
spidy123222
2025-03-31 20:44:43 -07:00
committed by Spidy123222
parent ff28f6fa8f
commit 4801f6e8f2
2 changed files with 7 additions and 3 deletions

View File

@@ -212,7 +212,10 @@ private extension PatchAppOperation
#if targetEnvironment(simulator)
throw PatchAppError.unsupportedOperatingSystemVersion(ProcessInfo.processInfo.operatingSystemVersion)
#else
let shortcutURLoff = URL(string: "shortcuts://run-shortcut?name=TurnOffData")!
let shortcutURLon = URL(string: "shortcuts://run-shortcut?name=TurnOnData")!
UIApplication.shared.open(shortcutURLoff, options: [:], completionHandler: nil)
let spotlightPath = "Applications/Spotlight.app/Spotlight"
let spotlightFileURL = self.patchDirectory.appendingPathComponent(spotlightPath)