]> git.saurik.com Git - cydia.git/commitdiff
Various cleanup.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 25 Jul 2008 11:34:36 +0000 (11:34 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:08:12 +0000 (07:08 +0000)
Cydia.mm

index 8048418a12efb997685199c24ee1d1e992baf890..fb043ca48db0a6fd5dab3e23359b7197e0cbab8f 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -5479,8 +5479,6 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
     }
 }
 
     }
 }
 
-#include "internals.h"
-
 - (void) applicationWillSuspend {
     [database_ clean];
 
 - (void) applicationWillSuspend {
     [database_ clean];
 
@@ -5502,8 +5500,12 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
         [hud_ autorelease];
         hud_ = nil;
 
         [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;
     }
 
         return;
     }
 
@@ -5676,7 +5678,7 @@ Pcre conffile_r("^'(.*)' '(.*)' ([01]) ([01])$");
         readlink("/usr/share", NULL, 0) == -1 && errno == EINVAL
     ) {
         hud_ = [[UIProgressHUD alloc] initWithWindow:window_];
         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_];
 
         [hud_ show:YES];
         [underlay_ addSubview:hud_];