From 57f0b05d173f38e3f57494b84c895cfeaf9f3091 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 6 Mar 2012 22:57:48 -0800 Subject: [PATCH] Only copy the keyboard dictionary if it actually exists. --- MobileCydia.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 2212e096..2c94da82 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10633,7 +10633,8 @@ int main(int argc, char *argv[]) { setuid(0); setgid(0); - system("mkdir -p /var/root/Library/Keyboard; cp -af /var/mobile/Library/Keyboard/UserDictionary.sqlite /var/root/Library/Keyboard/"); + if (access("/var/mobile/Library/Keyboard/UserDictionary.sqlite", F_OK) == 0) + system("mkdir -p /var/root/Library/Keyboard; cp -af /var/mobile/Library/Keyboard/UserDictionary.sqlite /var/root/Library/Keyboard/"); /*Method alloc = class_getClassMethod([NSObject class], @selector(alloc)); alloc_ = alloc->method_imp; -- 2.45.2