diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2012-09-19 17:08:54 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2012-09-19 17:08:54 +0000 |
commit | 0569ac5201a69994e216a580b0690bde5b202dd4 (patch) | |
tree | 4cd86a61aaafb78055ce13a8ce94e15fe78626de | |
parent | 97b54c51a985afce00d04b166a3f242a66b89391 (diff) |
Use a few more notifications for iOS 6 compatibility.
-rw-r--r-- | sbdidlaunch.mm | 18 |
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(); |