]> git.saurik.com Git - uikittools.git/blobdiff - sbdidlaunch.mm
Port to Xcode 4.6.3: newer versions of Xcode fail.
[uikittools.git] / sbdidlaunch.mm
index d242b0305dbdf66124c4cbe87f82cd863ee36043..8a6b38be4d9e2c7e3b40eb825cc4290b356731f6 100644 (file)
@@ -58,7 +58,25 @@ int main() {
         &OnDidLaunch,
         CFSTR("SBSpringBoardDidLaunchNotification"),
         NULL,
-        NULL
+        0
+    );
+
+    CFNotificationCenterAddObserver(
+        CFNotificationCenterGetDarwinNotifyCenter(),
+        NULL,
+        &OnDidLaunch,
+        CFSTR("com.apple.springboard.finishedstartup"),
+        NULL,
+        0
+    );
+
+    CFNotificationCenterAddObserver(
+        CFNotificationCenterGetDarwinNotifyCenter(),
+        NULL,
+        &OnDidLaunch,
+        CFSTR("com.apple.springboard.bootedcleanly"),
+        NULL,
+        0
     );
 
     if (SBSSpringBoardServerPort() == NULL)