X-Git-Url: https://git.saurik.com/uikittools.git/blobdiff_plain/a4ccf03b126d08d4135f6c7d619e4ff25f7abb41..85a77f07b23019c3adfc990f653a3abfbb741e28:/sbdidlaunch.mm diff --git a/sbdidlaunch.mm b/sbdidlaunch.mm index d242b03..8a6b38b 100644 --- a/sbdidlaunch.mm +++ b/sbdidlaunch.mm @@ -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)