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.

Say why the Finder extension watches the whole disk

Țugui Dragoș7315f2350af2
diff --git a/PeelFinder/FinderExtension.swift b/PeelFinder/FinderExtension.swift
index 827da4e9..07dea686 100644
--- a/PeelFinder/FinderExtension.swift
+++ b/PeelFinder/FinderExtension.swift
@@ -5,7 +5,8 @@ import PeelLink
final class FinderExtension: FIFinderSync {
override init() {
super.init()
- // Finder reports selected items only inside the watched folders, and an app can be anywhere.
+ // Finder tells the extension what is selected only inside the folders it watches (`selectedItemURLs` in
+ // FinderSync.h). An app can sit anywhere, so the extension watches the whole disk.
FIFinderSyncController.default().directoryURLs = [URL(filePath: "/", directoryHint: .isDirectory)]
}