mirror of
https://github.com/mas-cli/mas
synced 2024-11-28 22:40:24 +00:00
🏡 Ignore applications moved outside the system Applications folder
Fixes #309.
This commit is contained in:
parent
66f89a66a6
commit
d39058c7be
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue