summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();