]> git.saurik.com Git - cydget.git/commitdiff
Make the respring button kill backboardd on iOS 6.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 22 Mar 2013 07:41:02 +0000 (07:41 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 22 Mar 2013 07:41:02 +0000 (07:41 +0000)
CydgetSettings.mm

index 7726b4f03cc1adadc3bd788c2e6cbcac5f5e554d..5f0c95bc3e9a7a727f0c7e609f94f55d112cc6a6 100644 (file)
@@ -350,7 +350,11 @@ static NSString *_plist;
         return;
     if (![data writeToFile:_plist options:NSAtomicWrite error:NULL])
         return;
-    system("killall SpringBoard");
+
+    if (kCFCoreFoundationVersionNumber >= 700) // XXX: iOS 6.x
+        system("killall backboardd");
+    else
+        system("killall SpringBoard");
 }
 
 - (void) cancelChanges {