mirror of https://github.com/opa334/TrollStore.git
Very late bugfix: Also wipe data container when uninstalling an app
This commit is contained in:
parent
27534fb48d
commit
3d89c079a2
|
@ -775,6 +775,11 @@ int uninstallApp(NSString* appPath, NSString* appId, BOOL useCustomMethod)
|
||||||
{
|
{
|
||||||
LSApplicationProxy* appProxy = [LSApplicationProxy applicationProxyForIdentifier:appId];
|
LSApplicationProxy* appProxy = [LSApplicationProxy applicationProxyForIdentifier:appId];
|
||||||
|
|
||||||
|
// delete data container
|
||||||
|
if (appProxy.dataContainerURL) {
|
||||||
|
[[NSFileManager defaultManager] removeItemAtURL:appProxy.dataContainerURL error:nil];
|
||||||
|
}
|
||||||
|
|
||||||
// delete group container paths
|
// delete group container paths
|
||||||
[[appProxy groupContainerURLs] enumerateKeysAndObjectsUsingBlock:^(NSString* groupId, NSURL* groupURL, BOOL* stop)
|
[[appProxy groupContainerURLs] enumerateKeysAndObjectsUsingBlock:^(NSString* groupId, NSURL* groupURL, BOOL* stop)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue