diff --git a/main.m b/main.m index 48c182a..5faed56 100644 --- a/main.m +++ b/main.m @@ -207,7 +207,7 @@ static void overwriteExecPath(NSString *bundlePath) { } // Overwrite @executable_path - const char *appExecPath = appBundle.executablePath.UTF8String; + const char *appExecPath = appBundle.executablePath.UTF8String; *path = appExecPath; overwriteExecPath(appBundle.bundlePath); @@ -250,6 +250,8 @@ static void overwriteExecPath(NSString *bundlePath) { *path = oldPath; return appError; } + // Fix dynamic properties of some apps + [NSUserDefaults performSelector:@selector(initialize)]; if (![appBundle loadAndReturnError:&error]) { appError = error.localizedDescription;