🏡 Ignore applications moved outside the system Applications folder

Fixes #309.
This commit is contained in:
Chris Araman 2021-05-09 13:23:34 -07:00
parent 66f89a66a6
commit d39058c7be

View file

@ -15,7 +15,9 @@ class MasAppLibrary: AppLibrary {
/// Array of installed software products.
lazy var installedApps: [SoftwareProduct] = {
softwareMap.allSoftwareProducts()
softwareMap.allSoftwareProducts().filter { product in
product.bundlePath.starts(with: "/Applications/")
}
}()
/// Internal initializer for providing a mock software map.