]> git.saurik.com Git - uikittools.git/blobdiff - sbdidlaunch.mm
Unregister totally obsolete applications.
[uikittools.git] / sbdidlaunch.mm
index d242b0305dbdf66124c4cbe87f82cd863ee36043..810ca14609f75571778a3020aeeafa02c74e1dbd 100644 (file)
@@ -61,6 +61,24 @@ int main() {
         NULL
     );
 
+    CFNotificationCenterAddObserver(
+        CFNotificationCenterGetDarwinNotifyCenter(),
+        NULL,
+        &OnDidLaunch,
+        CFSTR("com.apple.springboard.finishedstartup"),
+        NULL,
+        NULL
+    );
+
+    CFNotificationCenterAddObserver(
+        CFNotificationCenterGetDarwinNotifyCenter(),
+        NULL,
+        &OnDidLaunch,
+        CFSTR("com.apple.springboard.bootedcleanly"),
+        NULL,
+        NULL
+    );
+
     if (SBSSpringBoardServerPort() == NULL)
         CFRunLoopRun();