Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Say that permissions keep the account from an app's Info.plist
Țugui Dragoș4005ee9b98e3
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstringsindex 67bf363f..a45423c1 100644--- a/Localization/Peel/Localizable.xcstrings+++ b/Localization/Peel/Localizable.xcstrings@@ -158276,6 +158276,112 @@}}},+ "Permissions keep your account from reading the Info.plist in %@, so Peel can’t read it as an app." : {+ "localizations" : {+ "cs" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Oprávnění nedovolí vašemu účtu číst soubor Info.plist v položce %@, takže ji Peel nedokáže přečíst jako aplikaci."+ }+ },+ "de" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Zugriffsrechte verhindern, dass dein Benutzeraccount die Info.plist in %@ liest, daher kann Peel es nicht als App lesen."+ }+ },+ "es" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel no puede leer %@ como una app, porque los permisos no dejan que tu cuenta lea su Info.plist."+ }+ },+ "fr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Des permissions empêchent votre compte de lire le fichier Info.plist de %@ : Peel ne peut donc pas le lire en tant qu’app."+ }+ },+ "it" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "I permessi impediscono al tuo account di leggere il file Info.plist in %@, quindi per Peel non è leggibile come app."+ }+ },+ "ja" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "アクセス権により、お使いのアカウントでは%@内のInfo.plistを読み取れないため、Peelはアプリとして読み取れません。"+ }+ },+ "ko" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "사용 권한 때문에 %@에 있는 Info.plist를 이 계정으로 읽을 수 없으므로, Peel이 이 항목을 앱으로 읽을 수 없습니다."+ }+ },+ "nl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Bevoegdheden voorkomen dat je account de Info.plist in %@ leest, dus Peel kan het niet als app lezen."+ }+ },+ "pl" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Uprawnienia nie pozwalają Twojemu kontu odczytać pliku Info.plist w %@, więc Peel nie może odczytać tej rzeczy jako aplikacji."+ }+ },+ "pt" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "As permissões não deixam esta conta ler o Info.plist em %@, então o Peel não consegue lê-lo como um app."+ }+ },+ "ro" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Peel nu poate citi %@ ca aplicație, deoarece permisiunile nu îi permit contului dvs. să citească fișierul Info.plist din acesta."+ }+ },+ "ru" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Права доступа не позволяют Вашей учетной записи прочитать файл Info.plist в %@, поэтому Peel не может прочитать этот объект как приложение."+ }+ },+ "sv" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Behörigheter hindrar ditt konto från att läsa Info.plist i %@, så Peel kan inte läsa den som en app."+ }+ },+ "tr" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "İzinler, hesabınızın %@ içindeki Info.plist dosyasını okumasını engelliyor, bu yüzden Peel onu bir uygulama olarak okuyamıyor."+ }+ },+ "uk" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "Привілеї не дають вашому обліковому запису прочитати файл Info.plist у %@, тож Peel не може прочитати це як програму."+ }+ },+ "zh-Hans" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "权限设置不允许你的账户读取%@中的Info.plist,因此Peel无法将其读取为App。"+ }+ },+ "zh-Hant" : {+ "stringUnit" : {+ "state" : "translated",+ "value" : "權限讓你的帳號無法讀取%@中的Info.plist,因此Peel無法將它讀取為App。"+ }+ }+ }+ },"Personalized Smart Replies in Mail" : {"localizations" : {"cs" : {@@ -210629,112 +210735,6 @@}}},- "The permissions of the Info.plist in %@ keep your account out, so Peel can’t read it as an app." : {- "localizations" : {- "cs" : {- "stringUnit" : {- "state" : "translated",- "value" : "Oprávnění souboru Info.plist v položce %@ k němu váš účet nepustí, takže ji Peel nedokáže přečíst jako aplikaci."- }- },- "de" : {- "stringUnit" : {- "state" : "translated",- "value" : "Die Zugriffsrechte der Info.plist in %@ sperren deinen Benutzeraccount aus, daher kann Peel es nicht als App lesen."- }- },- "es" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel no puede leer %@ como una app, porque los permisos de su Info.plist no dejan que tu cuenta lo lea."- }- },- "fr" : {- "stringUnit" : {- "state" : "translated",- "value" : "Les permissions du fichier Info.plist de %@ empêchent votre compte d’y accéder : Peel ne peut donc pas le lire en tant qu’app."- }- },- "it" : {- "stringUnit" : {- "state" : "translated",- "value" : "I permessi del file Info.plist in %@ impediscono al tuo account di accedervi, quindi per Peel non è leggibile come app."- }- },- "ja" : {- "stringUnit" : {- "state" : "translated",- "value" : "%@内のInfo.plistのアクセス権により、お使いのアカウントではアクセスできないため、Peelはアプリとして読み取れません。"- }- },- "ko" : {- "stringUnit" : {- "state" : "translated",- "value" : "%@에 있는 Info.plist는 사용 권한 때문에 이 계정으로 읽을 수 없으므로, Peel이 이 항목을 앱으로 읽을 수 없습니다."- }- },- "nl" : {- "stringUnit" : {- "state" : "translated",- "value" : "De bevoegdheden van de Info.plist in %@ sluiten je account buiten, dus Peel kan het niet als app lezen."- }- },- "pl" : {- "stringUnit" : {- "state" : "translated",- "value" : "Uprawnienia pliku Info.plist w %@ nie dają Twojemu kontu dostępu, więc Peel nie może odczytać tej rzeczy jako aplikacji."- }- },- "pt" : {- "stringUnit" : {- "state" : "translated",- "value" : "As permissões do Info.plist em %@ não deixam esta conta abri-lo, então o Peel não consegue lê-lo como um app."- }- },- "ro" : {- "stringUnit" : {- "state" : "translated",- "value" : "Peel nu poate citi %@ ca aplicație, deoarece permisiunile fișierului Info.plist din acesta nu permit accesul contului dvs."- }- },- "ru" : {- "stringUnit" : {- "state" : "translated",- "value" : "Права доступа файла Info.plist в %@ не пускают к нему Вашу учетную запись, поэтому Peel не может прочитать этот объект как приложение."- }- },- "sv" : {- "stringUnit" : {- "state" : "translated",- "value" : "Behörigheterna för Info.plist i %@ stänger ute ditt konto, så Peel kan inte läsa den som en app."- }- },- "tr" : {- "stringUnit" : {- "state" : "translated",- "value" : "%@ içindeki Info.plist dosyasının izinleri hesabınızın ona erişmesini engelliyor, bu yüzden Peel onu bir uygulama olarak okuyamıyor."- }- },- "uk" : {- "stringUnit" : {- "state" : "translated",- "value" : "Привілеї файлу Info.plist у %@ не пускають до нього ваш обліковий запис, тож Peel не може прочитати це як програму."- }- },- "zh-Hans" : {- "stringUnit" : {- "state" : "translated",- "value" : "%@中Info.plist的权限设置不允许你的账户访问,因此Peel无法将其读取为App。"- }- },- "zh-Hant" : {- "stringUnit" : {- "state" : "translated",- "value" : "%@中Info.plist的權限讓你的帳號無法取用,因此Peel無法將它讀取為App。"- }- }- }- },"The program it starts is gone, and no installed app claims it." : {"localizations" : {"cs" : {diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swiftindex 9202b4a5..356a7193 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift@@ -81,7 +81,7 @@ public enum AppInspector {case notAnApp/// The Info.plist, which says what the app is, isn't there.case noInfo- /// The Info.plist's permissions keep this account out.+ /// Permissions keep this account from reading the Info.plist: its own, or those of a folder on its way.case infoClosed/// The Info.plist opens but isn't a property list Peel can read.case infoDamageddiff --git a/Packages/PeelCore/Tests/PeelCoreTests/AppInspectorTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/AppInspectorTests.swiftindex 29828ce0..a0636f75 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/AppInspectorTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/AppInspectorTests.swift@@ -20,6 +20,9 @@ struct AppInspectorTests {_ = try directory.file("Closed.app/Contents/Info.plist", contents: Data("not a property list".utf8))try directory.setPermissions(0o000, of: "Closed.app/Contents/Info.plist")defer { try? directory.setPermissions(0o644, of: "Closed.app/Contents/Info.plist") }+ _ = try directory.file("Shut.app/Contents/Info.plist", contents: Data("not a property list".utf8))+ try directory.setPermissions(0o000, of: "Shut.app/Contents")+ defer { try? directory.setPermissions(0o755, of: "Shut.app/Contents") }func why(_ name: String) -> AppInspector.Unreadable {AppInspector.whyUnreadable(directory.url.appending(path: name))}@@ -29,6 +32,7 @@ struct AppInspectorTests {#expect(why("Bare.app") == .noInfo)#expect(why("Damaged.app") == .infoDamaged)#expect(why("Closed.app") == .infoClosed)+ #expect(why("Shut.app") == .infoClosed)}@Test func aCopyInATrashIsNotInstalledWhateverItsNameBeginsWith() {diff --git a/Peel/Views/Presentation.swift b/Peel/Views/Presentation.swiftindex bcd81087..e196feff 100644--- a/Peel/Views/Presentation.swift+++ b/Peel/Views/Presentation.swift@@ -254,7 +254,7 @@ extension AppInspector.Unreadable {case .gone: String(localized: "\(path) isn’t there anymore.")case .notAnApp: String(localized: "\(path) isn’t an app.")case .noInfo: String(localized: "\(path) has no Info.plist, the file that says what an app is, so Peel can’t read it as one.")- case .infoClosed: String(localized: "The permissions of the Info.plist in \(path) keep your account out, so Peel can’t read it as an app.")+ case .infoClosed: String(localized: "Permissions keep your account from reading the Info.plist in \(path), so Peel can’t read it as an app.")case .infoDamaged: String(localized: "The Info.plist in \(path) isn’t a property list Peel can read, so Peel can’t read it as an app.")}}