summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2012-09-19 17:08:54 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2012-09-19 17:08:54 +0000
commit0569ac5201a69994e216a580b0690bde5b202dd4 (patch)
tree4cd86a61aaafb78055ce13a8ce94e15fe78626de
parent97b54c51a985afce00d04b166a3f242a66b89391 (diff)
Use a few more notifications for iOS 6 compatibility.
-rw-r--r--sbdidlaunch.mm18
1 files changed, 18 insertions, 0 deletions
diff --git a/sbdidlaunch.mm b/sbdidlaunch.mm
index d242b03..810ca14 100644
--- a/sbdidlaunch.mm
+++ b/sbdidlaunch.mm
@@ -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();