Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Plug-ins covers six more folders their makers document

Țugui Dragoșc0b805d3faa9
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstrings
index e887f7e1..144e6f17 100644
--- a/Localization/Peel/Localizable.xcstrings
+++ b/Localization/Peel/Localizable.xcstrings
@@ -7786,6 +7786,112 @@
}
}
},
+ "AAX Plug-ins" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-iny AAX"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAX-Plug-ins"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Módulos AAX"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Modules AAX"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plugin AAX"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAXプラグイン"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAX 플러그인"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAX-plug-ins"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Wtyczki AAX"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-ins AAX"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-inuri AAX"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Плагины AAX"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAX-insticksfiler"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAX Yazılım Ekleri"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Плагіни AAX"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAX插件"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "AAX外掛模組"
+ }
+ }
+ }
+ },
"About Peel" : {
"localizations" : {
"cs" : {
@@ -14631,6 +14737,112 @@
}
}
},
+ "Automator Actions" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Akce Automatoru"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Automator-Aktionen"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Acciones de Automator"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Actions Automator"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Azioni di Automator"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Automatorアクション"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Automator 동작"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Automator-taken"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Czynności Automatora"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ações do Automator"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Acțiuni Automator"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Действия Automator"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Automator-åtgärder"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Automator İşlemleri"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Дії Automator"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "自动操作"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Automator動作"
+ }
+ }
+ }
+ },
"Background Items" : {
"localizations" : {
"cs" : {
@@ -22496,6 +22708,112 @@
}
}
},
+ "Contacts Plug-ins" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-iny pro Kontakty"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kontakte-Plug-ins"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Módulos de Contactos"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Modules Contacts"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plugin di Contatti"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "連絡先プラグイン"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "연락처 플러그인"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Contacten-plug-ins"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Wtyczki Kontaktów"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-ins do Contatos"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-inuri Contacte"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Плагины Контактов"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kontakter-insticksfiler"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Kişiler Yazılım Ekleri"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Плагіни Контактів"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "“通讯录”插件"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "聯絡人外掛模組"
+ }
+ }
+ }
+ },
"Container" : {
"localizations" : {
"cs" : {
@@ -26014,6 +26332,112 @@
}
}
},
+ "Dictionaries" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Slovníky"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Lexika"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Diccionarios"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dictionnaires"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dizionari"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "辞書"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "사전"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Woordenboeken"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Słowniki"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dicionários"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Dicționare"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Словари"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ordböcker"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Sözlükler"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Словники"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "词典"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "辭典"
+ }
+ }
+ }
+ },
"Disable" : {
"localizations" : {
"cs" : {
@@ -43707,6 +44131,112 @@
}
}
},
+ "Image Units" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Obrazové jednotky"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Image Units"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unidades de imagen"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unités d’image"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unità immagine"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "イメージユニット"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "이미지 유닛"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Beeldeenheden"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Moduły filtrów obrazu"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unidades de Imagem"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Unități de imagine"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Модули обработки изображений"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Bildfilter"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Görüntü Birimleri"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Модулі зображень"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "图像单元"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "影像單元"
+ }
+ }
+ }
+ },
"Images" : {
"localizations" : {
"cs" : {
@@ -55028,6 +55558,112 @@
}
}
},
+ "MAS Plug-ins" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-iny MAS"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MAS-Plug-ins"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Módulos MAS"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Modules MAS"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plugin MAS"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MASプラグイン"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MAS 플러그인"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MAS-plug-ins"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Wtyczki MAS"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-ins MAS"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Plug-inuri MAS"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Плагины MAS"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MAS-insticksfiler"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MAS Yazılım Ekleri"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Плагіни MAS"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MAS插件"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "MAS外掛模組"
+ }
+ }
+ }
+ },
"MIDI Drivers" : {
"localizations" : {
"cs" : {
diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverMatcher.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverMatcher.swift
index ccb2603f..947c1ef2 100644
--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverMatcher.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/LeftoverMatcher.swift
@@ -140,7 +140,7 @@ struct LeftoverMatcher: Sendable {
private static let plugInExtensions = [
".component", ".vst3", ".vst", ".clap", ".driver", ".plugin", ".webplugin", ".bundle", ".mailbundle",
".prefPane", ".qlgenerator", ".saver", ".qtz", ".mdimporter", ".service", ".workflow", ".colorPicker",
- ".menu", ".inputmethod", ".app",
+ ".menu", ".inputmethod", ".app", ".aaxplugin", ".dictionary", ".action",
]
static func withoutPlugInExtension(_ fileName: String) -> String {
diff --git a/Packages/PeelCore/Sources/PeelCore/Leftovers/SearchLocation.swift b/Packages/PeelCore/Sources/PeelCore/Leftovers/SearchLocation.swift
index f3c9098c..f4bb9cc2 100644
--- a/Packages/PeelCore/Sources/PeelCore/Leftovers/SearchLocation.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Leftovers/SearchLocation.swift
@@ -70,7 +70,8 @@ extension SearchLocation.Kind {
case .launchDaemons: self = .launchDaemons
case .privilegedHelperTools: self = .privilegedHelperTools
case .audioUnits, .audioDrivers, .vst, .vst3, .clap, .midiDrivers, .internetPlugIns, .preferencePanes, .quickLook,
- .screenSavers, .spotlight, .services, .inputMethods, .colorPickers, .contextualMenuItems, .mailBundles:
+ .screenSavers, .spotlight, .services, .inputMethods, .colorPickers, .contextualMenuItems, .mailBundles,
+ .aax, .mas, .imageUnits, .dictionaries, .automatorActions, .contactsPlugIns:
self = .plugIns
}
}
diff --git a/Packages/PeelCore/Sources/PeelCore/Plugins/Plugins.swift b/Packages/PeelCore/Sources/PeelCore/Plugins/Plugins.swift
index 46e177b1..676455e9 100644
--- a/Packages/PeelCore/Sources/PeelCore/Plugins/Plugins.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Plugins/Plugins.swift
@@ -19,6 +19,12 @@ public struct Plugin: Sendable, Hashable, Identifiable {
case colorPickers
case contextualMenuItems
case mailBundles
+ case aax
+ case mas
+ case imageUnits
+ case dictionaries
+ case automatorActions
+ case contactsPlugIns
}
public let url: URL
@@ -56,6 +62,12 @@ extension Plugin.Category {
case .colorPickers: self = .colorPickers
case .contextualMenuItems: self = .contextualMenuItems
case .mailBundles: self = .mailBundles
+ case .aax: self = .aax
+ case .mas: self = .mas
+ case .imageUnits: self = .imageUnits
+ case .dictionaries: self = .dictionaries
+ case .automatorActions: self = .automatorActions
+ case .contactsPlugIns: self = .contactsPlugIns
case .applicationSupport, .applicationScripts, .caches, .containers, .groupContainers, .preferences,
.preferencesByHost, .savedApplicationState, .recentDocuments, .logs, .httpStorages, .webKit, .cookies,
.launchAgents, .launchDaemons, .privilegedHelperTools:
@@ -133,6 +145,12 @@ public enum Plugins {
.colorPickers: ["colorpicker"],
.contextualMenuItems: ["plugin"],
.mailBundles: ["mailbundle"],
+ .aax: ["aaxplugin"],
+ .mas: ["bundle"],
+ .imageUnits: ["plugin"],
+ .dictionaries: ["dictionary"],
+ .automatorActions: ["action"],
+ .contactsPlugIns: ["bundle"],
]
/// Returns the plug-ins in `directory`, looking one level down inside folders that are not plug-ins
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/HelperInterface.swift b/Packages/PeelCore/Sources/PeelPrivileged/HelperInterface.swift
index 403d5efc..b71c0e7b 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/HelperInterface.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/HelperInterface.swift
@@ -7,7 +7,7 @@ public enum HelperIdentity {
public static let launchdPlistName = "com.tuguidragos.Peel.Helper.plist"
/// Raise it whenever the helper changes, so Peel asks for the helper to be installed again rather than work with
/// an older one. The helper refuses requests that carry any other version.
- public static let protocolVersion = 7
+ public static let protocolVersion = 8
}
/// The complete set of privileged operations. The helper validates every argument itself.
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/LibraryFolder.swift b/Packages/PeelCore/Sources/PeelPrivileged/LibraryFolder.swift
index a976371f..0151c0e7 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/LibraryFolder.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/LibraryFolder.swift
@@ -33,11 +33,24 @@ public enum LibraryFolder: String, CaseIterable, Sendable {
case colorPickers = "ColorPickers"
case contextualMenuItems = "Contextual Menu Items"
case mailBundles = "Mail/Bundles"
+ /// Avid's "Where is the Plug-Ins folder for Pro Tools located?" (kb.avid.com).
+ case aax = "Application Support/Avid/Audio/Plug-Ins"
+ /// MOTU's "What differences are there between MAS and AU plug-ins in Digital Performer?".
+ case mas = "Audio/Plug-Ins/MAS"
+ /// Apple's "Preparing an Image Unit for Distribution", Image Unit Tutorial.
+ case imageUnits = "Graphics/Image Units"
+ /// Apple's "Creating Dictionaries", Dictionary Services Programming Guide.
+ case dictionaries = "Dictionaries"
+ /// Apple's "Automator Overview", Automator Programming Guide.
+ case automatorActions = "Automator"
+ /// Apple's "Creating and Using Address Book Action Plug-ins", Address Book Programming Guide.
+ case contactsPlugIns = "Address Book Plug-Ins"
/// The folders macOS loads plug-ins from, in each Library.
public static let plugIns: [LibraryFolder] = [
.audioUnits, .audioDrivers, .vst, .vst3, .clap, .midiDrivers, .internetPlugIns, .preferencePanes, .quickLook,
- .screenSavers, .spotlight, .services, .inputMethods, .colorPickers, .contextualMenuItems, .mailBundles,
+ .screenSavers, .spotlight, .services, .inputMethods, .colorPickers, .contextualMenuItems, .mailBundles, .aax,
+ .mas, .imageUnits, .dictionaries, .automatorActions, .contactsPlugIns,
]
/// The folders searched in the home's Library, besides the plug-in folders.
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverMatcherTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverMatcherTests.swift
index 8ed9ae9d..70339a26 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/LeftoverMatcherTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/LeftoverMatcherTests.swift
@@ -400,7 +400,10 @@ struct LeftoverMatcherTests {
@Test func aPlugInIsMatchedWithoutTheExtensionThatSaysItsKind() throws {
let serum = app("com.xferrecords.serum", name: "Serum")
- for name in ["Serum.vst3", "Serum.vst", "Serum.component", "Serum.clap", "Serum.saver"] {
+ for name in [
+ "Serum.vst3", "Serum.vst", "Serum.component", "Serum.clap", "Serum.saver", "Serum.aaxplugin", "Serum.action",
+ "Serum.dictionary",
+ ] {
let found = try #require(match(name, in: .plugIns, for: serum), "\(name)")
#expect(found.reason == .name, "\(name)")
#expect(found.confidence == .likely, "\(name)")
@@ -412,7 +415,7 @@ struct LeftoverMatcherTests {
/// then only a name prefix match: shown as a guess, never selected as the app's own.
@Test func anUnknownPlugInKindIsNeverTakenForTheAppsOwn() throws {
let serum = app("com.xferrecords.serum", name: "Serum")
- let found = try #require(match("Serum.aaxplugin", in: .plugIns, for: serum))
+ let found = try #require(match("Serum.rtas", in: .plugIns, for: serum))
#expect(found.reason == .namePrefix)
#expect(found.confidence == .possible)
}
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/PluginsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/PluginsTests.swift
index bcf5e0ae..5158feed 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/PluginsTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/PluginsTests.swift
@@ -52,6 +52,33 @@ struct PluginsTests {
#expect(plugins.first { $0.name == "Parrot" }?.isInstalledForAllUsers == true)
}
+ /// Avid, MOTU and Apple each document a folder their plug-ins are installed in: AAX, MAS, Core Image's image
+ /// units, dictionaries, Automator's actions and Contacts' action plug-ins.
+ @Test func findsThePlugInsOfEveryFolderTheirMakersDocument() async throws {
+ let directory = try TemporaryDirectory()
+ let bundles = [
+ "root/Library/Application Support/Avid/Audio/Plug-Ins/Echo.aaxplugin",
+ "root/Library/Audio/Plug-Ins/MAS/Delay.bundle",
+ "home/Library/Graphics/Image Units/Grain.plugin",
+ "home/Library/Dictionaries/Glossary.dictionary",
+ "root/Library/Automator/Resize.action",
+ "home/Library/Address Book Plug-Ins/Dial.bundle",
+ ]
+ for bundle in bundles { try directory.directory("\(bundle)/Contents") }
+
+ let environment = SearchEnvironment(
+ homeDirectory: directory.url.appending(path: "home", directoryHint: .isDirectory),
+ rootDirectory: directory.url.appending(path: "root", directoryHint: .isDirectory)
+ )
+ let plugins = await Plugins.scan(environment: environment)
+ let found = Dictionary(uniqueKeysWithValues: plugins.map { ($0.name, $0.category) })
+
+ #expect(found == [
+ "Echo": .aax, "Delay": .mas, "Grain": .imageUnits, "Glossary": .dictionaries, "Resize": .automatorActions,
+ "Dial": .contactsPlugIns,
+ ])
+ }
+
/// All of Mail in the user's own Library is protected, so a Mail bundle there is listed but never offered: moving
/// it would only be refused. A plug-in anywhere else is offered as usual.
@Test func showsAMailBundleInTheUsersLibraryButLeavesItAlone() async throws {
diff --git a/Peel/Views/Plugins/PluginList.swift b/Peel/Views/Plugins/PluginList.swift
index ea4e7b90..69357d19 100644
--- a/Peel/Views/Plugins/PluginList.swift
+++ b/Peel/Views/Plugins/PluginList.swift
@@ -108,6 +108,12 @@ extension Plugin.Category {
case .colorPickers: "Color Pickers"
case .contextualMenuItems: "Contextual Menu Items"
case .mailBundles: "Mail Plug-ins"
+ case .aax: "AAX Plug-ins"
+ case .mas: "MAS Plug-ins"
+ case .imageUnits: "Image Units"
+ case .dictionaries: "Dictionaries"
+ case .automatorActions: "Automator Actions"
+ case .contactsPlugIns: "Contacts Plug-ins"
}
}
}