summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-07-25 11:34:36 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:12 +0000
commitc6ad32a6b1dff7c8843aab864e6ee53ea2be6fcf (patch)
tree36d6edc6e9b223fd74bdfa4178e07432e2759ab0
parent6d9712c40c02cdae090ecfc58a8a669df03ef467 (diff)
Various cleanup.
-rw-r--r--Cydia.mm12
1 files changed, 7 insertions, 5 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 8048418..fb043ca 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -5479,8 +5479,6 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
}
}
-#include "internals.h"
-
- (void) applicationWillSuspend {
[database_ clean];
@@ -5502,8 +5500,12 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
[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;
}
@@ -5676,7 +5678,7 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
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_];