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
Compare an app's copies without opening them
Țugui Dragoșaa3c1eda58de
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex bd202bb9..8e01afa2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -475,6 +475,8 @@ its changes the way [Keep a Changelog](https://keepachangelog.com/) suggests.- Peel says when it can't show an app another page, a notification, or a shortcut asked for.- Finder, a drop, and the Dock icon say when they ask for a bundle Peel can't read, with Show in Finder.- Escape no longer closes the Reset sheet during a reset or a Put Back, which lost Put Settings Back.+- Reading the apps no longer brings up macOS's question about a folder that only holds another copy of an app, such as+ Downloads.#### Orphaned Filesdiff --git a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swiftindex 18699618..3cdf83a3 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/AppInspector.swift@@ -205,9 +205,9 @@ public enum AppInspector {}private static func isKnown(_ url: URL, as identifier: String) -> Bool {- let path = PathPattern.comparablePath(of: PathPattern.canonical(url))+ let path = PathPattern.comparablePath(of: PathPattern.canonicalWithoutOpening(url))return NSWorkspace.shared.urlsForApplications(withBundleIdentifier: identifier).contains {- PathPattern.comparablePath(of: PathPattern.canonical($0)) == path+ PathPattern.comparablePath(of: PathPattern.canonicalWithoutOpening($0)) == path}}diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/DefaultApps.swift b/Packages/PeelCore/Sources/PeelCore/Apps/DefaultApps.swiftindex 1ac180cd..ce969684 100644--- a/Packages/PeelCore/Sources/PeelCore/Apps/DefaultApps.swift+++ b/Packages/PeelCore/Sources/PeelCore/Apps/DefaultApps.swift@@ -98,7 +98,7 @@ public enum DefaultApps {/// The real path of an app, with links resolved. macOS reports Safari at its path inside a cryptex, and/// `/Applications/Safari.app` is a link to it.private static func place(of url: URL) -> String {- PathPattern.comparablePath(of: PathPattern.canonical(url))+ PathPattern.comparablePath(of: PathPattern.canonicalWithoutOpening(url))}static func isDefault(_ app: InstalledApp, for handler: URL?) -> Bool {