}
}
-#include "internals.h"
-
- (void) applicationWillSuspend {
[database_ clean];
[hud_ autorelease];
hud_ = nil;
- reload_ = true;
- [self fixSpringBoard];
+ pid_t pid = ExecFork();
+ if (pid == 0) {
+ execlp("launchctl", "launchctl", "stop", "com.apple.SpringBoard", NULL);
+ perror("launchctl stop");
+ }
+
return;
}
readlink("/usr/share", NULL, 0) == -1 && errno == EINVAL
) {
hud_ = [[UIProgressHUD alloc] initWithWindow:window_];
- [hud_ setText:@"Reorganizing\n\nWill Restart When Done"];
+ [hud_ setText:@"Reorganizing\n\nWill Automatically\nRestart When Done"];
[hud_ show:YES];
[underlay_ addSubview:hud_];