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
Offer no Disable for a job from a file Peel can't read
Țugui Dragoș92a8e5e29867
diff --git a/Packages/PeelCore/Sources/PeelCore/BackgroundItems/BackgroundItems.swift b/Packages/PeelCore/Sources/PeelCore/BackgroundItems/BackgroundItems.swiftindex 6d13b17a..191614ea 100644--- a/Packages/PeelCore/Sources/PeelCore/BackgroundItems/BackgroundItems.swift+++ b/Packages/PeelCore/Sources/PeelCore/BackgroundItems/BackgroundItems.swift@@ -178,6 +178,8 @@ public enum BackgroundItems {let folder = PathPattern.comparablePath(of: plist.deletingLastPathComponent())var placed = jobplaced.isClosedToPeel = true+ // Once it isn't loaded, its row knows only the file's name, or nothing lists it: Enable would be gone.+ placed.staysListedWhenDisabled = falseif let index = rows.firstIndex(where: {$0.isClosedToPeel && $0.isNamedByItsFile && $0.plistURL.map(PathPattern.comparablePath(of:)) == file}) {diff --git a/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swiftindex 692ce1f5..a78c6f48 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/BackgroundItemActionsTests.swift@@ -912,6 +912,7 @@ struct DeclaredBackgroundItemsTests {#expect(rows.map(\.label) == ["org.example.daemon", "org.example.stray"])#expect(rows.first?.source == .systemLibrary, "launchd loaded it from its own folder, not from elsewhere")#expect(rows.first?.isClosedToPeel == true && rows.first?.isNamedByItsFile == false)+ #expect(rows.first?.mayBeDisabled == false, "the row after it is named by its file and has no Enable")#expect(rows.last?.source == .otherFile && rows.last?.isClosedToPeel == false)}@@ -940,6 +941,7 @@ struct DeclaredBackgroundItemsTests {#expect(rows.first?.source == .userLibrary, "launchd loaded it from its own folder, not from elsewhere")#expect(rows.first?.isClosedToPeel == true)+ #expect(rows.first?.mayBeDisabled == false, "once it isn't loaded, nothing lists it")}/// macOS keeps its own jobs under `/System/Library` and `/Library/Apple/System/Library`, so a file in these